|
-
Oct 3rd, 2000, 01:14 PM
#1
Thread Starter
Junior Member
I've opened a MS Access database by using this code:
Set DBMain = OpenDatabase(App.Path & "\Main.mdb")
Set RSMain = DBMain.OpenRecordset("Select * From MAIN")
Now I want to display the database information into a flexgrid control. But when I add this line:
Set FlexMain.DataSource = DBMain
it comes with the error message "Object variable or With block variable not set".
What am I doing wrong?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|