Hi All,
My first Post so be gentle.
I have a simple form with one field on display which offers the user a choice of selecting lets say Records 1, 2 or 3. This selection opens a query which loads all the fields associated with the table. From this query I have opened another basic form which has only one field on display which is a unique number based on the initial selection Lets say the number 2.
I now wish to open a form which is unique to this number 2.
Here is my humble offerings which fail to deliver.
Private Sub Job1_KeyPress(KeyAscii As Integer)
DoCmd.OpenQuery "CompetitionNameQuery"
DoCmd.OpenForm "GameTypeNoForm"
If "Forms.GameTypeNoForm.GameTypeNumber" = "2" Then
DoCmd.OpenForm "PlayersNameQuery"
End If
There is something I am missing with the
If "Forms.GameTypeNoForm.GameTypeNumber" which is defeating me.
The idea is to be able to have numbers from say 1 to 20 all opening a different form by extending the routine with the "else" command.
Any help really appreciated.
David