Sorry for being trivial in this, but I am new to VB -- please bear with me
during my learning.
If there is a more basic VB newsgroup, I'd be happy to post these sort of
questions there, as
I only want to learn how to code properly.
I load my "View Recipes Form" from my "Main Menu Form" with a:
Private Sub cmdViewRecipe_Click()
frmViewRecipe.Show
Unload frmMainMenu
End Sub
Are you saying I should read the 1st item of the database inside this
command like:
Private Sub cmdViewRecipe_Click()
frmViewRecipe.Show
Data1.RecordSet.Movefirst
Unload frmMainMenu
End Sub
(the Data will appear then in the View Recipe form?)
And, if that is the case, Data1 being the name of my Data Control Object ...
I need to figure
out what that is as well -- what exactly a Data Control Object is as I am
not finding where to
actually "set" what that is.
"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:vc********************@comcast.com...
I have not been able to figure out how to run code in a form, before any
buttons are pushed/clicked. What I have is a recipe manager that
"reads" an access file to get recipe information. When a user first goes into it,
they should be displayed the 1st recipe in the database, but I am unsure how
to do this. I believe I can get that information if they click a button on
the form with the proper database read commands, but how do I tell VB to go
ahead and get that information for the 1st record BEFORE they click on
anything at all?
Are you saying you don't know about the Form_Load and/or Form_Activate
events, or are you having a different kind of problem?
Rick - MVP