Share via

Access database getting error for one user

Anonymous
2016-06-13T19:59:43+00:00

I have an Access database that works perfectly fine on three computers, but one user gets this error message when she tries to save the data:

DoCmd. RunSQL vsql

Does anyone know why only one user would receive this error message when the Db runs fine on other computers?  Thank you!

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

8 answers

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2016-06-13T20:53:58+00:00

    So the problem is with whatever the value of vsql is at the time that code is run. 

    What you need to do is put the line Debug.Print vsql in front of the line that is throwing the error and run the code again. when it errors, hit Debug and Immediate Window should show the SQL statement. Copy and paste that into a response here so we can see if we can spot the problem.

    Was this answer helpful?

    0 comments No comments
  2. DBG 11,711 Reputation points Volunteer Moderator
    2016-06-13T20:53:17+00:00

    Hi. Can you post the complete code? Thanks.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-06-13T20:48:56+00:00

    When I click debug it takes me to that line of code. Sorry for the confusion.  I know nothing about coding or access and the person who wrote this database is no longer working at our company.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-06-13T20:42:35+00:00

    Run-time error 3134

    syntax error in INSERT INTO statement

    Was this answer helpful?

    0 comments No comments
  5. ScottGem 68,830 Reputation points Volunteer Moderator
    2016-06-13T20:08:32+00:00

    That's not a message that's a VBA line of code. What is the message she is getting? What is the value of vsql when that line of code is executed? Is the database split?

    Was this answer helpful?

    0 comments No comments