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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERT with macro substituion does not work 1

Status
Not open for further replies.

Koen Piller

Programmer
Jun 30, 2005
841
NL
Hi,

I am stumbling over a insert command with macrosubsitution:

Code:
cInsert = [insert into myTable(field1,field2) values ("newval1","newval2")]
&cInsert
will result in an error: command contains unrecognized phrase/keword
Where as
Code:
insert into myTable(field1,field2) values ("newval1","newval2")
works fine.
What should I possibly correct to make this macrosubstitution work?

Thanks for replying,
Jockey2
 

The marcro substitution you posted works for me. I assume this isn't the exact line of code that is giving you the problem. It sounds like a syntax problem.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
Mike,

You were one hundred percent correct. Solved my syntax problem in the original code ( one "(" too much )

Thanks for moral suppport,

Jockey(2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top