T
Toco Hara
I have problem with concatinating my string expression.
There are 3 fields that I try to include in my
expression: CustomerNumber, DtOrder, DtReviewed. I try
to send the values from the first form to the second form,
but 2 of them are dates and my string expression is not
right. Can anyone correct my syntax? Am I openening the
second form not correctly? Here is OnClick Method of
button on the first form:
strDocName = "frmOrder"
strLinkCriteria = "[DtOrder]=" & "#" & Me![DtOrder] & "#"
& " AND [CustomerNumber] = '" & Me![CustomerNumber] & "
AND [DtReviewed]= " & "#" & Me![DtReviewed] & "#" & "'"
DoCmd.OpenForm strDocName, , , strLinkCriteria
'Forms!frmOrder![SaveID] = Me![CustomerNumber]
'Forms!frmOrder![SaveDt] = Me![DtOrder]
'Forms!frmPCR![SaveReviewed] = Me![DtReviewed]
There are 3 fields that I try to include in my
expression: CustomerNumber, DtOrder, DtReviewed. I try
to send the values from the first form to the second form,
but 2 of them are dates and my string expression is not
right. Can anyone correct my syntax? Am I openening the
second form not correctly? Here is OnClick Method of
button on the first form:
strDocName = "frmOrder"
strLinkCriteria = "[DtOrder]=" & "#" & Me![DtOrder] & "#"
& " AND [CustomerNumber] = '" & Me![CustomerNumber] & "
AND [DtReviewed]= " & "#" & Me![DtReviewed] & "#" & "'"
DoCmd.OpenForm strDocName, , , strLinkCriteria
'Forms!frmOrder![SaveID] = Me![CustomerNumber]
'Forms!frmOrder![SaveDt] = Me![DtOrder]
'Forms!frmPCR![SaveReviewed] = Me![DtReviewed]