Results 1 to 5 of 5
  1. #1
    sknechte is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    14

    Change content with update query

    Click image for larger version. 
<br /><script async src=
    Name: Capture.PNG  Views: 14  Size: 38.2 KB  ID: 32547" class="thumbnail" style="float:CONFIG" />

    I would like to insert values into these rows with an update query, but every time I make an attempt to do so, I return 0 results.


    Here is what I have tried

    Click image for larger version. 

Name:	cap2.PNG 
Views:	15 
Size:	36.2 KB 
ID:	32548

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,127
    Enclose the update string in quotes " at the start and end
    If it still fails, change the criteria to include empty strings - Is Null Or "'
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    or you can leave as null and use the format property - something like

    @;"Requires more information"

    benefit is you still have the null as a 'value' to indicate no information so you can still use the nz and isnull functions

    I often use it to request the user to enter something e.g.

    @;"Enter first name here"
    @;"Enter last name here"

    if used in the right way can make data entry forms look much cleaner

  4. #4
    sknechte is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    14
    I really appreciate both of your replies. I am navigating access blindly, and you two are really helping me out.

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Just an FYI,
    "Description" is a reserved word in Access and shouldn't be used for object names. Plus it is not very descriptive: "Description" of what???
    For a list of reserved words in Access, see Problem names and reserved words in Access

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

Similar Threads

  1. Replies: 17
    Last Post: 11-03-2017, 08:20 AM
  2. Replies: 6
    Last Post: 12-03-2014, 10:28 PM
  3. Help using update query to change dates
    By goingcrosseyed in forum Queries
    Replies: 1
    Last Post: 12-03-2012, 07:17 AM
  4. Update Query to change Renew Dates
    By GraemeG in forum Queries
    Replies: 4
    Last Post: 04-07-2011, 12:09 PM
  5. update field with specific content
    By luxeon in forum Queries
    Replies: 2
    Last Post: 01-24-2011, 03:29 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