Results 1 to 7 of 7
  1. #1
    JulieAHop is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2017
    Location
    Netherlands
    Posts
    15

    Smile Method for updating table from a search form.


    Hi

    I'm currently working on designing a database to assist with building quotations.

    I have 5 tables.

    Customer
    Contacts
    Items
    QuoteHead
    QuoteLine

    I have data entry screen which has a couple of combo boxes that deal with selecting the customer and contact, I have a subform for adding the quote lines, On the QuoteLine subform (a continuous form) I have a button that opens up a search form to assist with identifying an item, what I really want is to be able to select the item from the search form and be added to the quote line. I've really hit a brick wall with this.

    I know it can be done just don't know how.

    Any help would be greatly appreciated.

    Thanks in anticipation.

    Julie

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You could put a listbox on the parent form.
    the listbox would show all items to pick from.
    dbl-click an item in the list will run an append query to add it to the sub form.
    docmd.openquery "qaAddItem2Quote"

    You can also put a textbox to search the listbox for 1 item.

  3. #3
    JulieAHop is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2017
    Location
    Netherlands
    Posts
    15

    Smile

    Ranman256, you are a diamond. I was nearly there but was trying an update query instead. Doh!!
    Thank you so much. It workied..... it's a miracle. I just need to get the append query to update the quote number from the data entry form header too.
    Got any expert advice for me there?

    Click image for larger version. 

Name:	Capture.PNG 
Views:	15 
Size:	28.3 KB 
ID:	27357

    Thanks so much.

    Julie

  4. #4
    JulieAHop is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2017
    Location
    Netherlands
    Posts
    15
    I have it sussed now.
    Thanks again.

    Julie

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    From your picture I see you have fields names "Description" and "Currency". These are reserved words in Access/JET and shouldn't be used as object names.
    http://allenbrowne.com/AppIssueBadWord.html

    Instead of "Description" I use "Desc", but I prefix it with an object.
    But "Desc" is not very descriptive (Desc of what??), so I use something like "ItemDesc".


    Something to be aware of. Using reserved words can lead to major headaches.......

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by ssanfu View Post

    ...But "Desc" is not very descriptive (Desc of what??), so I use something like "ItemDesc"...
    Not only not very descriptive...but Desc is also a Reserved Word!

    Linq ;0)>

  7. #7
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How did I miss that???


    Thanks Linq, for pointing that out.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2016, 09:07 AM
  2. Replies: 11
    Last Post: 02-22-2015, 01:25 PM
  3. Replies: 12
    Last Post: 11-11-2014, 02:10 PM
  4. Advanced Search / Query Method
    By rabryant1 in forum Queries
    Replies: 10
    Last Post: 06-15-2013, 07:47 PM
  5. Using a combo box as search method
    By jbethann in forum Programming
    Replies: 3
    Last Post: 10-20-2011, 09:21 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