JackieEVSC
Programmer
I have a form that creates a new record in a table with vba code. The code works and creates the record. However, I need to open a different form using ID of this new record, and I can't seem to get the form to open to that record.
The table name where the record is created is tbl_RepairInfo.
The field name is TicketNum (auto-numbered).
The form I need to open to that record is frm_StudentInfo.
This is what I tried (that didn't work) ... DoCmd.OpenForm "frm_RepairTicket", , , "TicketNum = " & Me!TicketNum. What am I doing wrong?
The table name where the record is created is tbl_RepairInfo.
The field name is TicketNum (auto-numbered).
The form I need to open to that record is frm_StudentInfo.
This is what I tried (that didn't work) ... DoCmd.OpenForm "frm_RepairTicket", , , "TicketNum = " & Me!TicketNum. What am I doing wrong?