iankerry
Registered User.
- Local time
- Today, 21:25
- Joined
- Aug 10, 2005
- Messages
- 190
Hi
I have been trying to solve this for over an hour, and i'll bet it is something stupid.
I have four line of SQL = statements. Two to select the fields, one as a from and one as a WHERE. The most important one, and the one that is giving me trouble. (i know this because if i REM it out the code works).
so, something like this
SQL = "SELECT dbo_Promoters.postcode, dbo_Promoters.[Box Office] etc etc
SQL = SQL & "dbo_EventsLive.PromoOnCosts, PromoTotalCost, etc
SQL = SQL & "FROM dbo_WhichProjectLive INNER JOIN etc
SQL = SQL & "WHERE dbo_EventsLive.EventID=" & [currentID]
When I run this i get
Character found after end of SQL statement.
I have tried many things - like putting another quotes at the end, brackets. i even tried putting WHERE EventID = 1, but i still get the same message.
Can Anyone advise? Before I go nuts.
thanks
Ian
I have been trying to solve this for over an hour, and i'll bet it is something stupid.
I have four line of SQL = statements. Two to select the fields, one as a from and one as a WHERE. The most important one, and the one that is giving me trouble. (i know this because if i REM it out the code works).
so, something like this
SQL = "SELECT dbo_Promoters.postcode, dbo_Promoters.[Box Office] etc etc
SQL = SQL & "dbo_EventsLive.PromoOnCosts, PromoTotalCost, etc
SQL = SQL & "FROM dbo_WhichProjectLive INNER JOIN etc
SQL = SQL & "WHERE dbo_EventsLive.EventID=" & [currentID]
When I run this i get
Character found after end of SQL statement.
I have tried many things - like putting another quotes at the end, brackets. i even tried putting WHERE EventID = 1, but i still get the same message.
Can Anyone advise? Before I go nuts.

thanks
Ian