
I understand the SELECT error, but the rest of your reply is a little Greek to me.
Can you give me a few lines of code to explain your observation?
I am very new at this, so be patient with me, please.
Thank you for your reply
Jerry
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have Access from Microsoft 365, I am creating a query, and when I try to save it the error:
Characters found after end of SQL statement.
I have tried to find the error and can't run a debug because it hasn't been saved. How can I debug to find the error?
This SQL statement converts the signal-hour fields into universal UTC military time.
Please delete my post. I am taking another option. Thank you all for your help. I need more education in Access before taking on this type of project.
Thanks again, Jerry
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.
I understand the SELECT error, but the rest of your reply is a little Greek to me.
Can you give me a few lines of code to explain your observation?
I am very new at this, so be patient with me, please.
Thank you for your reply
Jerry
Okay, maybe this is becoming clearer.
Please confirm: Is it the case that the entire block of text from
"SELECT [Monday Only].*,"
through the final
"MsgBox "Table '" & [Monday Only Converted] & "' created successfully!", vbInformation, "Success"
End Sub"
was originally pasted into the SQL view of a query?
And, as you said, you simply copied all of that from this SQL view to paste here?
And, to be clear, there is nothing in VBA itself? Everything shown came from a SQL view?
I repeat the questions George asked. If what you copied was from the Access SQL view, then that is your probem. Much if what you posted was VBA code, NOT SQL. Having the VBA code will definitely cause that error "Characters found after end of SQL statement."
There should be nothing before the SELECT statement and nothing after the FROM clause.
I also agree with Ken that your table structure is questionable. What is this query supposed to do and what is the app supposed to do?
I have an input form to input: First name, UTC code where they live. I also have each day of the week with an individual box for time as 00:00, 01:00, through 23:00. These boxes represent the time of day where they live, and they're available to have phone or ZOOM conferences.
I want to convert these times into universal time or world military time. Print the converted data to line up people who can meet at the same time. Like California talking to New York. In this case, we have people all over the world.
I hope this is clear. I have limited knowledge of Access Database. I have used it in the past, and I am trying to wake up my past knowledge.