SparkyP
asked on
& Chr(34) syntax
On a similar line to my previous post. The following code works fine except for our Mr D'Arcy.
I have tried numerous permitations, but cnnot escape an errror message.
Please can you help?
Private Sub Form_Open(Cancel As Integer)
Me.Filter = "[Engname] =" & Chr(34) & Forms!frmdatabaselogin!cbo StaffMembe r & Chr(34) & "And [WE Date] >= Now() - 3"
Me.FilterOn = True
Me.WRSSub.Form.Combo65.Row Source = "select [hours id], [id2], [job number id], [Job Date], site, [Work Request Details], [total ot hrs], [total std hrs], callout from vvworksheetlookup where EngName='" & Forms!frmdatabaselogin!cbo StaffMembe r & "'"
End Sub
I have tried numerous permitations, but cnnot escape an errror message.
Please can you help?
Private Sub Form_Open(Cancel As Integer)
Me.Filter = "[Engname] =" & Chr(34) & Forms!frmdatabaselogin!cbo
Me.FilterOn = True
Me.WRSSub.Form.Combo65.Row
End Sub
ASKER
mbizup
Your code finished at the final CHR(34
I've tried ) and ) &, but keep getting expected end of statement error at the first CHR
Your code finished at the final CHR(34
I've tried ) and ) &, but keep getting expected end of statement error at the first CHR
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much
Open in new window