Very Basic Newbie Question

W

weefunk

I know I'm Missing something VERY basic here.
I Recently started learning VB (self-taught with Books CBTS, etc) and
I have a simple project started with ADO bound to fields and even have
all of my EOF & BOF where the stop correctly. The records will display
in the text boxes correctly.

I don't know SQL (will soon) but I just want a simple way to search
the Database I connected to to display that recordset.

I created a search form but have trouble having it come up on my main
form. What am I missing?
 
K

Ken Snell

You should be able to set the form's Recordset property to be equal to the
recordset that you've created.

Set Forms("FormName").Recordset = YourRecordsetName

Note that you cannot close YourRecordsetName recordset while the form is
open, else the form will no longer be able to display that recordset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top