can't open a form in database view

D

davidz

Hi There:

For example I have form1 and form2, when I open form1, I can use the button
in form1 to open form2, but if I want to open form2 straight way in database
view, there always comes a message to tell me open form2 only by using the
button in form1. how can I open form2 by just double click? thanks.
 
P

Piet Linden

Hi There:

For example I have form1 and form2, when I open form1, I can use the button
in form1 to open form2, but if I want to open form2 straight way in database
view, there always comes a message to tell me open form2 only by using the
button in form1. how can I open form2 by just double click? thanks.

Sounds like you have code in the Open event of form2 that checks to
see if form1 is already loaded. IF it's not, a message is shown...
You would need to comment out or remove the code that checks for Form1
being open already from the Open event in form2.
 

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