Solved

clearing a dbgrid bound to a record source

Posted on 1998-06-19
1
210 Views
Last Modified: 2012-08-14
I am using a bound dbgrid in a form which is fetching multiple data rows and displaying it into the grid. But when I want to refresh it - there is no command available to refresh and putting null values into the grid also does not solve the purpose - I want to get only one blank row when the form gets loaded - any solution to this problem - My thanks are due in advance.
0
Comment
Question by:abhijitbanerjee
1 Comment
 
LVL 2

Accepted Solution

by:
marti earned 200 total points
ID: 1463836
After bounding the grid to a data control, set DatabaseName property of the data control to ""
On:
Private Sub Form_Click()
   
    Data1.DatabaseName = "C:\\DB\Diction.mdb"    '<- Your DB here
    Data1.Refresh
   
End Sub

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question