G
Guest
I have a sub form with a command button that invokes a dialog.
When there are matching records (QuestionID) in the table the dialog is
populated correctly but, any records that are added to the dialog are written
to the table with QuestionID of 0 (zero) instead of the current QuestionID.
The code for the on click event is
Dim sWhere As String
Me![fiQuestionLvl3].SetFocus
sWhere = "[QuestionID] = " & Str(QuestionID)
'MsgBox "1 | " & sWhere
DoCmd.OpenForm "fSrvResponseList", , , sWhere, , A_DIALOG, Str(QuestionID)
Any ideas please.
When there are matching records (QuestionID) in the table the dialog is
populated correctly but, any records that are added to the dialog are written
to the table with QuestionID of 0 (zero) instead of the current QuestionID.
The code for the on click event is
Dim sWhere As String
Me![fiQuestionLvl3].SetFocus
sWhere = "[QuestionID] = " & Str(QuestionID)
'MsgBox "1 | " & sWhere
DoCmd.OpenForm "fSrvResponseList", , , sWhere, , A_DIALOG, Str(QuestionID)
Any ideas please.