Eddie Mason
Registered User.
- Local time
- Today, 17:26
- Joined
- Jan 31, 2003
- Messages
- 142
Hi All,
I need to run the following query in a form:
DoCmd.RunSQL "UPDATE Positions SET Positions.PercTot = " & _
"DSum(""[PercTime]"",""OccDet"",""[PosRef] = " & _
"Forms![FhPosnD]![PosRef] "")" & _
"WHERE Positions.PosRef =[Forms]![FhPosnD]![PosRef];"
Whilst this query works perfectly it doesn't look very elegent and is difficult to write. Is there any way of not having to put the double quotation marks around everything?
Regards
Eddie
I need to run the following query in a form:
DoCmd.RunSQL "UPDATE Positions SET Positions.PercTot = " & _
"DSum(""[PercTime]"",""OccDet"",""[PosRef] = " & _
"Forms![FhPosnD]![PosRef] "")" & _
"WHERE Positions.PosRef =[Forms]![FhPosnD]![PosRef];"
Whilst this query works perfectly it doesn't look very elegent and is difficult to write. Is there any way of not having to put the double quotation marks around everything?
Regards
Eddie