|
-
Apr 20th, 2001, 04:36 PM
#1
Thread Starter
Addicted Member
Hi,
In the following code below, I am loading the UserID's from my database into a combo box when the initial form loads at startup.
'############################
Private Sub Form_Load()
Set db = OpenDatabase(App.Path + "\" + "test.mdb")
Set rs = db.OpenRecordset("Users")
rs.MoveFirst
Do Until rs.EOF
cmbUsers.AddItem rs.Fields("UserID")
rs.MoveNext
Loop
db.Close
End Sub
'############################
My first question is...
How can I go ahead and load the form if the database is empty?
My second question is...
When I distribute my program, will I need to include the DAO360.DLL also?
Thanks a lot,
Ron
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
|