Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:41:23+00:00 2026-06-15T02:41:23+00:00

In MS Access 2010, I am building an update query (using the Query Designer).

  • 0

In MS Access 2010, I am building an update query (using the Query Designer).
I would like to pass the name of the column to update as a variable, at run time.

I have tried writing the SQL and running the query in VBA. This seemed like the easiest way… however the SQL to complete the update becomes quite messy. I would prefer to do this in the query builder GUI .
Is it possible?

I have so far tried entering field names into the query builder:

expr1:[field_name]

Although Access prompts me for “Field_name” This results in “Cannot update ‘field_name’; field not updateable.

Also, I tried this method:

Expr1: "'" & [field_name] & "'"

which results in “‘” & [field_name] & “‘” is not a valid name; check for punctuation.. etc

Below is a screen capture the query I am trying to build.

a screen cap of the query I am proposing

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:41:26+00:00Added an answer on June 15, 2026 at 2:41 am

    Access’ db engine will not allow you to use a parameter as the name of the target field for your UPDATE statement.

    If you try a user-defined function instead of a parameter to provide the field name, the result will be the same … no joy.

    It seems the db engine will not resolve object names when it executes a SQL statement. That limitation applies not just to field names, but table names as well. IOW, the following query will fail with an error message that it “cannot find the input table or query ‘give me a table name’“.

    SELECT *
    FROM [give me a table name];
    

    While that isn’t exactly the same as your situation, I suspect the reason may be. The db engine is too limited about resolving object names when it plans/executes queries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Access 2010 and would like to have a user click a button
I'm building WinForms application using Visual Studio 2010. Every time I make a change
Am building windows form application for a Hospital using VS2010 ON ACCESS 2010. I
I'm using Access 2010 under Win7. I've discovered I can dimension my arrays at
I am working on my first Access 2010 database and have run into a
I am using C# with MS Access 2010. I need to retrieve the table
I'm building an application for a University assignment, I'm using Visual Basic 2010 and
I am building an application in Visual Studio 2010 using .Net 4.0 and an
I have an Access 2010 database with information from Geonames. The table name is
I am working in Access 2010. I am building a database that lets my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.