Results 1 to 3 of 3
  1. #1
    deepucec9 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    34

    executing update query

    Hi,


    I am trying to run an update query which updates the value in a sub form to another table. Set a macro "open query" to a command button, when I click on command button a pop up window appears with message "Enter parameter value (field_name)".
    tried the same query in another FORM it is working fine. Please find the attached screen shot of query.
    TIA Click image for larger version. 

Name:	1.jpg 
Views:	11 
Size:	90.6 KB 
ID:	22521

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What field is in the prompt? The field highlighted above doesn't show as one of the fields, but there is one with a similar name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    a couple things:

    in order to call in data from a form into a query you must have an alias like a calculated field; so it must be:
    SomeName: [Forms]![FormName].ControlName

    you have to have that 'SomeName:' preceeding it

    then you must right click while in the upper half of design view and select: Parameters

    in here you must enter the correct form field syntax i.e. [Forms]![FormName].[ControlName] and in the column next to it you select the field type that it is. You must do that for every field you are calling in.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need Help executing an update in form
    By ismith in forum Forms
    Replies: 17
    Last Post: 01-20-2012, 08:42 AM
  2. Executing Query to Excel?
    By objNoob in forum Programming
    Replies: 1
    Last Post: 03-17-2010, 04:59 PM
  3. Replies: 0
    Last Post: 04-24-2006, 06:48 AM
  4. Replies: 0
    Last Post: 04-21-2006, 08:21 AM
  5. Replies: 0
    Last Post: 04-21-2006, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums