Solved

clearing a dbgrid bound to a record source

Posted on 1998-06-19
1
208 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now