foodmandeuce
Technical User
I would soooo appreciate help from anyone who can provide it:
I am setting up a quasi-command line in an application, where the user enters a unique command in a text box on a form, the application then searches the table for the command, grabs the corresponding "form" field from the table, and then goes to the table. Both of my books say to do the same thing, and the code has not passed compiling yet. Here is my code:
Sub Commandline(lngCommandEntry As Long)
Dim rstTable As Recordset
rstTable = CurrentDb.OpenRecordset("9999_tblCommands", dbOpenTable)
rstTable.Index = "lngCommand"
rstTable.Seek "=", lngCommandEntry
DoCmd.OpenForm rstTable.strForm, , , ""
End Sub
PLEEEEEEEEZZZZ HELP!
I am setting up a quasi-command line in an application, where the user enters a unique command in a text box on a form, the application then searches the table for the command, grabs the corresponding "form" field from the table, and then goes to the table. Both of my books say to do the same thing, and the code has not passed compiling yet. Here is my code:
Sub Commandline(lngCommandEntry As Long)
Dim rstTable As Recordset
rstTable = CurrentDb.OpenRecordset("9999_tblCommands", dbOpenTable)
rstTable.Index = "lngCommand"
rstTable.Seek "=", lngCommandEntry
DoCmd.OpenForm rstTable.strForm, , , ""
End Sub
PLEEEEEEEEZZZZ HELP!