BradCollins
Technical User
After days of trying, I admit defeat and would like the help of all the kind souls here.
My problem is I am trying to open a form (form 2) and display the data chosen from the first form
so far I have :
no matter what i try, it closes Form 1 without a problem and opens Form 2 as it should, but displays ready for a new entry, not the details of the chosen record.
I have tried (for days) now to play with the selection critera and have tried :
"[fldIssueID]=" & strCallNo
"[fldIssueID] = " & strCallNo
"[fldIssueID]=" & "'" & strCallNo & "'"
"[fldIssueID] = '" & strCallNo & "'"
and a few other combinations, but it just wont work. Can anyone point out where I have gone wrong here.
Thanks
My problem is I am trying to open a form (form 2) and display the data chosen from the first form
so far I have :
Code:
Dim strReturnFormName As String
Dim StrCallNo as String
strReturnFormName = "Form 2"
strCallNo = Me.txtCallNo.Value
If me.txtField.Value = "" Then
Msgbox "You must enter data." & Chr(13) & _
"You will now be returned to do this"
DoCmd.Close
DoCmd.OpenForm strReturnFormName, acNormal, , "[fldIssueID]=" & strCallNo
EndIf
no matter what i try, it closes Form 1 without a problem and opens Form 2 as it should, but displays ready for a new entry, not the details of the chosen record.
I have tried (for days) now to play with the selection critera and have tried :
"[fldIssueID]=" & strCallNo
"[fldIssueID] = " & strCallNo
"[fldIssueID]=" & "'" & strCallNo & "'"
"[fldIssueID] = '" & strCallNo & "'"
and a few other combinations, but it just wont work. Can anyone point out where I have gone wrong here.
Thanks