delete queries

nate0057

Registered User.
Local time
Today, 12:48
Joined
Oct 4, 2012
Messages
74
Hi everybody,

I would like to replace the following code
Code:
delquery = "DELETE PPAPlinks.*, PPAPlinks.ILINK, PPAPlinks.REVN, PPAPlinks.PARTN, PPAPlinks.CREQ, PPAPlinks.ORDN "
delquery = delquery & "FROM PPAPlinks "

By another code like this:
Code:
delquery = DELETE * FROM PPAPLinks

But a message error appear : "Expected: End of statement"

What could I do??

Thanks a lot.
 
I'm guessing that you have defined (DIM) delquery as a string? You probably need to surround that string with quotation marks. " "
 
Effectively I defined delquery as a string and you're totally right. I've tried different things but I haven't thought about the quotation marks.
It works
Thank you
 

Users who are viewing this thread

Back
Top Bottom