I have created a form in Word and I am transferring the data from the form to a table in Access. I tested the code with three fields and it worked fine. However, there are over 60 fields on this form and I get the following message as I'm working on the string sql insert statement: "Too many line continuations." Is there a way around this and if not, can you have two Insert statements in a module?
Reply from Richard Rost:
Once you hit the maximum there isn't much you can do except to try and shorten your line or break it up into multiple commands. How about using an INSERT statement to create the record and get an ID, then you can use multiple UPDATE commands to add the rest of the data? I'd need to see your code to be of more help.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.