Help with syntax. What am I doing wrong 
Author Message
 Help with syntax. What am I doing wrong

The following syntax on current event giving me a missing
operator in the [SpantranID] = .....

here is my code
strSQL = "UPDATE tblClientDetails SET Balance_Refund
= 'Balance:'" _
        & "WHERE [SpanTranID] =" & Me![ SpanTranID] & ""

what am i doing wrong?
thanks
Al



Sun, 12 Sep 2004 00:51:29 GMT  
 Help with syntax. What am I doing wrong
Al,

Just leave off the training bits.

strSQL = "UPDATE tblClientDetails SET Balance_Refund
= 'Balance:'" _
        & "WHERE [SpanTranID] =" & Me![ SpanTranID]

Quote:

>The following syntax on current event giving me a missing
>operator in the [SpantranID] = .....

>here is my code
>strSQL = "UPDATE tblClientDetails SET Balance_Refund
>= 'Balance:'" _
>        & "WHERE [SpanTranID] =" & Me![ SpanTranID] & ""

>what am i doing wrong?
>thanks
>Al

Graham R Seach MVP
Sydney, Australia
------------------------


Sun, 12 Sep 2004 00:59:33 GMT  
 Help with syntax. What am I doing wrong
Al,
You are missing a space before the "WHERE" clause.  Print strSQL to the
immediate window and then try to run the query in the query builder it will
generally be apparent where your errors are.


Quote:
> The following syntax on current event giving me a missing
> operator in the [SpantranID] = .....

> here is my code
> strSQL = "UPDATE tblClientDetails SET Balance_Refund
> = 'Balance:'" _
>         & "WHERE [SpanTranID] =" & Me![ SpanTranID] & ""

> what am i doing wrong?
> thanks
> Al



Sun, 12 Sep 2004 01:01:36 GMT  
 Help with syntax. What am I doing wrong
The trailing & "" is not  necessary. Get rid of it.

RJ


Quote:
> The following syntax on current event giving me a missing
> operator in the [SpantranID] = .....

> here is my code
> strSQL = "UPDATE tblClientDetails SET Balance_Refund
> = 'Balance:'" _
>         & "WHERE [SpanTranID] =" & Me![ SpanTranID] & ""

> what am i doing wrong?
> thanks
> Al



Sun, 12 Sep 2004 01:01:01 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help on GPF...what am I doing wrong???

2. What am i doing wrong here????? HELP

3. HELP: what am i doing wrong??

4. HELP: what am i doing wrong??

5. HELP - What Am I Doing Wrong

6. Help: What am I doing wrong?

7. HELP: what am i doing wrong??

8. Recordset: What am I doing wrong?

9. What am I doing wrong??

10. What am I doing wrong?

11. What am I doing wrong?

12. What am I doing wrong?

 

 
Powered by phpBB® Forum Software