i cannot run my viewing redord tool bar pls. give me a code for that..tnx

I assume you are talking about the Data tool?

Place the tool on your form. Select Database Name and click on the cmd button with ... on it to open the connection wizard. Select the database you want to connect to and scroll down to RecordSource. Select the table source and you should then be connected.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.