Using the 'DoCmd.RunSQL' in a Private Sub Command_Click(), I can not replicate the results when the same singular statement was ran as a query. To clarify, I have a basic SQl query generated in Access. I am trying to use this fuctional query to create a table at the click of a button. My statement almost works in VB. VB seems to have a problem with the IIf value if true. If the IIf statement is True I would like to insert a character string into the cell. Double quotes around the True value creates an error in the run, and without the quotes either a blank or a -1 is inserted into the cell, in VB.
How do I get VB to acknowledge the SQL character string?
Thank you,
Lee Kendall
How do I get VB to acknowledge the SQL character string?
Thank you,
Lee Kendall