Results 1 to 5 of 5
  1. #1
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    118

    Update Query returning a letter rather than number

    I an trying to build an update query that updates a table with a value in an open form (the ID of the record). Couldn’t get it to work so to test it is pulling the correct value I created a new field in a select query using the same syntax.


    test: [Forms]![frm_Index_Enquiry]![frm_Enquiry].[Form]![EID]
    it is returning a single letter e.g. u, v, w etc. but the EID field is actually number. Any ideas why and how to correct this please?

  2. #2
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Is the EID a lookup field in the source table?
    They can often obfuscate the stored value.

    What is the control source for the EID control, has something been renamed somewhere.
    I always change textbox control names to txtFieldName so I know that I am referring to the control and not the underlying field value.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    118
    The form is based directly to the table (no interim queries) and the field is the key ID field an Auto Number type. I also tried placing an unbound field on the form and making it equal the EID then ensuring the format was number but got the same results. Something is happening because each time I run the query and the ID increments by 1 the letter changes

  4. #4
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Without seeing the table and a simple form demonstrating the issue, I'm afraid I have no other ideas?
    Can you upload a demo of the problem?
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    Ant_Snell is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2021
    Location
    UK
    Posts
    118
    I will see if I can recreate a small example then post. thanks

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

Similar Threads

  1. Number/Letter Combinations as Entries
    By AWoodward in forum Access
    Replies: 6
    Last Post: 05-03-2020, 01:36 PM
  2. Assigning a Letter Grade to a number
    By MichaelA in forum Access
    Replies: 23
    Last Post: 09-19-2019, 09:33 PM
  3. Iif statement in query returning ID number
    By Kelsallison in forum Queries
    Replies: 5
    Last Post: 06-22-2018, 03:54 PM
  4. Replies: 8
    Last Post: 05-04-2018, 12:17 AM
  5. Update Query returning more records than table it is updating
    By frustratedwithaccess in forum Queries
    Replies: 4
    Last Post: 02-07-2015, 04:20 PM

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