Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368

    If you change to view from Design to SQL, you will see what's really happening in a query. Go to SQL view, put that in, changing table and field names to match your tables, and then go back to design view.

  2. #17
    Henry_Reimer is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    8
    Thanks for sticking with me. The code did not work: A box asking me to "enter parameter value" came up.

    Looking at the SQL syntax for Updates I see that it is expecting a value rather than a variable. Perhaps that is the issue. Also, I note that the original "parameter value" that it asks for is Donors.DonorID. When I click OK another "enter parameter value" box comes up, this time asking for the Donors.First Name. When I click OK a third "enter parameter value" box comes up, this time asking for Donors.Last Name. That is, all three references to another table (the Donors table) seem to cause a problem.
    ??

  3. #18
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    If your field name has spaces in it, you have to wrap it with brackets. so you would have Donors.[Last Name]. Also, make sure everything is case sensitive. look up "Update query syntax" and you should be able to figure it out. It's not very complicated.

  4. #19
    Henry_Reimer is offline Novice
    Windows Vista Access 2007
    Join Date
    Oct 2011
    Posts
    8
    Yeah, I had discovered the need for brackets. But that did not help in this case. Reading the help files on joins, I notice that there are some issues regarding blank cells. My donations table has lots of blank cells in the FirstName and LastName fields (since I don't fill in these fields for organizational donors). Perhaps an "outer join" (right join) is needed?

  5. #20
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    If you are mixing organizational donors along with individuals, what I would do is create a DonorName field that combines both first name and last name. Then join off that single field. Having separate fields for first name and last name implies that all of the entries are humans. With organizations, you dont need to. So add the field then run an update query on both tables:
    UPDATE tableName
    SET DonorName = Trim([First Name] & " " & [Last Name])

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 12
    Last Post: 12-14-2011, 08:04 PM
  2. User interface to update a table
    By HectorH in forum Forms
    Replies: 1
    Last Post: 09-16-2011, 06:16 PM
  3. Preventing user from accessing the Table
    By winsonlee in forum Access
    Replies: 4
    Last Post: 07-26-2011, 07:55 AM
  4. User Input/Updating Tables Help
    By hawkins in forum Access
    Replies: 3
    Last Post: 06-07-2011, 04:48 PM
  5. Identical tables for different user data.
    By Bajaz001 in forum Forms
    Replies: 1
    Last Post: 03-15-2011, 10:37 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