Form Displaying Blank

funderburgh

Registered User.
Local time
Today, 15:00
Joined
Jun 25, 2008
Messages
118
I am writing a little swipe card application. My "Main Menu" has an event to allow the user to swipe their card. The form I created to prompt the action is very simple with only one label on it. When it is displayed, it is blank.

The only success I have had is to set the Docmd OpenForm WindowMode to "Dialog". This is a problem because the processing stops, and does not continue on to the routine that will read the card. I feel like I have tried every combination of modal and pop up propeties. Here is my code:


DoCmd.Close acForm, "frmDashboard"
DoCmd.OpenForm "frmSplash"

The attached images show the splash form and the results of the code.

Any help is very welcome.
 

Attachments

  • sshot1.jpg
    sshot1.jpg
    29.7 KB · Views: 128
  • sshot2.jpg
    sshot2.jpg
    25.8 KB · Views: 120
a blank form is generally caused because

a) there are no records and
b) either the form is set to not allow additions, or
the dataset will not allow additions

either way, you get a blank form, and you cant even refer to the controls without causing a run time error (trappable, but the controls are undefined - they are not null, and you cant use nz with them)

try opening the forms underlying query, and you will probably see that it wont let you add new items
 

Users who are viewing this thread

Back
Top Bottom