scotthutchings
Registered User.
- Local time
- Today, 08:21
- Joined
- Mar 26, 2010
- Messages
- 96
I am receiving the following error:
when my Dlookup code runs. Here is the code:
Any Ides? It looks correct in the debug.print.
Thanks in advance.
Scott.
3075 Syntax error (missing operator) in query expression 'Project Name = "Scott's Training Project(21)"'. at 'cmbCONumber_NotInList"
when my Dlookup code runs. Here is the code:
Code:
Dim Project As String
Dim strMessage As String
Dim rs As Recordset
Dim PTR As Variant
strMessage = "Change Order #'" & NewData & "' appears to be a new change quote. Do you want to create a new change quote?"
If Confirm(strMessage) Then
Set rs = CurrentDb.OpenRecordset("PM - Change Order")
Project = Forms![PM - PM Change Orders]![cmbProjectName]
PTR = DLookup("TaxRate", "Project File", "Project Name = """ & Project & """")
Any Ides? It looks correct in the debug.print.
Thanks in advance.
Scott.