Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upsizing Issue with SQL Server

Status
Not open for further replies.

whill1

Technical User
Feb 14, 2004
46
US
Hi All,
I have a problem with this code now. it has been working fine for over a year in Access but when I Upsized, SQL Server gives me problems:
this is code from Access:
Code1:'Expr2:([ApptDetails]![ApptDate] + [ApptDetails]![ApptTime])-Eval([ApptDetails]![RemindTime])

This is how it was modified in the Upsizing process:
Code1: 'Expr2:([ApptDetails]![ApptDate]' + '[ApptDetails]![ApptTime])-Eval([ApptDetails]![RemindTime])'

Error:[Microsoft][ODBC SQL Server Driver][SQL Server]Syntax error converting from character string.

Is there a SQl equivalent for Eval?
Is there a different approach?
Thanks to All,
W.
 
Hey,
I found the answer to this, the code that works is this:
'[ApptDetails]![ApptDate] + [ApptDetails]![ApptTime])-Eval([ApptDetails]![RemindTime]'
Notice the single quotes ' ' locations.
Man this gets really annoying when the wizards can't get it right.
Hope this helps somebody down the road.
W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top