Share via

How to view queries using the wizard in SQL view

Anonymous
2023-07-12T23:33:49+00:00

I have a bunch of queries that I created many years ago using the wizard.

In design view I want to look at the code in SQL, How can I accomplish this. I just cannot seem to find how to switch it over like I did in 2003.

CAn this be done in 365?

Thanks

Old NASA KId

Microsoft 365 and Office | Access | For business | 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

36 answers

Sort by: Most helpful
  1. ScottGem 68,810 Reputation points Volunteer Moderator
    2023-07-17T20:58:13+00:00

    We Got It Finally!

    Here is the code

    Set cdb = CurrentDb

    Set rst = cdb.OpenRecordset("SELECT * FROM MstrPhts")

    Do Until rst.EOF

    strFile = rst!Location

    Me.Image25.Picture = strFile

    I think that when we used NE.Txt it was trying to read the entire file, reason for not enough memory.

    I explained that you a few responses back.

    Now you have a new post where you used foggy code.

    And why are you even using code? All you need to do is assign the field location as the controlSource to your image control. You are making things more difficult for yourself.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. ScottGem 68,810 Reputation points Volunteer Moderator
    2023-07-13T13:55:26+00:00

    If you look at the screenshot Duane provided, you will see that Sql view is an option on the View pull down, when in query design mode.

    Like Duane, I NEVER use the query wizard.

    Was this answer helpful?

    0 comments No comments
  3. Duane Hookom 26,820 Reputation points Volunteer Moderator
    2023-07-13T13:13:01+00:00

    I never use the query wizard which is a feature that would never expose a user to a sql view. It's a wizard interface with the sole purpose of avoiding the SQL view. Create a query by whatever means and then view the SQL.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-07-13T12:54:23+00:00

    DHookum;

    I brought up the Query Wizard and I do not find the SQL View or Design View on my 365 Office.

    The Old NASA Kid put a bunch of old ones he had in my Windows 10 computer to reference because both of us have not worked with Access for a pretty long time, slowly but surely the cobwebs are coming out.

    Thanks for being patient.

    IchthyologistNeb

    Was this answer helpful?

    0 comments No comments
  5. Duane Hookom 26,820 Reputation points Volunteer Moderator
    2023-07-13T00:48:46+00:00

    I don't think this has changed. From design view, select View->SQL View

    Was this answer helpful?

    0 comments No comments