E
Ed from AZ
I'm pretty decent with Word and Excel VBA, but I've never really tried
an Access DB from scratch before. I started to build one with the
help of smoe gurus here at work, so naturally they gave me stuff
that's well over my head. It's been put aside for a few months, but
now I need to get it going. It was originally begun in Access 2003,
but since then we've been upgraded to 2007.
Last night I dusted this thing off and actually was able to open the
main form, click a button, and get my data entry form to open up. But
I was getting some errors when I tried to load my data, so I closed
it. This morning, I can get the main form to open, but now it throws
an error trying to open my data entry form.
In the main screen, I double-click frmMainScreen and it opens. I
click btnMainAddEdit which has the following code:
Private Sub btnMainAddEdit_Click()
Load frmDataEntry
DoEvents
frmDataEntry.Visible = True
frmMainScreen.Visible = False
End Sub
It errors on the Load statement with "Object is required". When I
mouse over frmDataEntry, it says "Empty"??? (Yes, there is a form
"frmDataEntry" in the list of Access Objects.)
How do I correctly refer to another form in the same project and load
it?
Ed
an Access DB from scratch before. I started to build one with the
help of smoe gurus here at work, so naturally they gave me stuff
that's well over my head. It's been put aside for a few months, but
now I need to get it going. It was originally begun in Access 2003,
but since then we've been upgraded to 2007.
Last night I dusted this thing off and actually was able to open the
main form, click a button, and get my data entry form to open up. But
I was getting some errors when I tried to load my data, so I closed
it. This morning, I can get the main form to open, but now it throws
an error trying to open my data entry form.
In the main screen, I double-click frmMainScreen and it opens. I
click btnMainAddEdit which has the following code:
Private Sub btnMainAddEdit_Click()
Load frmDataEntry
DoEvents
frmDataEntry.Visible = True
frmMainScreen.Visible = False
End Sub
It errors on the Load statement with "Object is required". When I
mouse over frmDataEntry, it says "Empty"??? (Yes, there is a form
"frmDataEntry" in the list of Access Objects.)
How do I correctly refer to another form in the same project and load
it?
Ed