Results 1 to 6 of 6
  1. #1
    mlozano is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Location
    Madrid, Spain
    Posts
    11

    Recordlookup and selection

    Hi
    I have a db for quotes, orders, packing lists, invoices etc.

    I want to avoid the use of combo boxes where avoidable.

    Whar I would like to do is the following:

    Take for instance a "new order" form.To select the customer, users would
    1.- Double click on the "Customer" field, which would open the "Customers" form in datasheet view or continuous forms view.
    2.- Filter or seartch to find the intended customer
    3.- Double click on the desired customer id or name fields,which would close the "Customers" form and set the value of the "Customer" field of the "New Order" form to the key of the selected customer

    Very much like in MS Dynamics NAVand many other business apps.

    Is this possible without a lot of code?
    Any help would be greatly appreciated

    Cheers!

  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
    Personally I'd use a combo, but you could adapt this to create a pop up form that could be called from anywhere.

    http://www.baldyweb.com/WrappedForm.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Why avoid combobox? Have the "Customer" field be a combobox on form. Select customer from the list. Enter order information. Zero code required. The combobox would be multi-column. Review: http://datapigtechnologies.com/flash...combobox3.html
    Last edited by June7; 10-03-2012 at 08:25 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    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
    Using the 'song-and-dance' routine you've described, to accomplish this very routine task, instead of using a Combobox, is, to be perfectly blunt, simply absurd! A Combobox will automate 75% of what you've described here, with the other 25% taking ten or fifteen minutes of work!

    What, exactly, is your objection to Comboboxes?

    Linq ;0)>

  5. #5
    mlozano is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Location
    Madrid, Spain
    Posts
    11
    I have no propblem whatsover with combo boxes when there are not too many records to select from.
    My "Customers" table would have thousands of records.
    I prefer a popup because the form could be filtered according to different parameters to narrow the search.
    Thanks

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Did the wrapped form idea help?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Selection VBA on Form
    By dualvba in forum Forms
    Replies: 2
    Last Post: 04-19-2012, 07:07 AM
  2. One selection force another selection
    By K. Foster in forum Database Design
    Replies: 4
    Last Post: 02-03-2012, 10:30 PM
  3. cmb box selection
    By dr223 in forum Access
    Replies: 3
    Last Post: 01-13-2012, 09:16 AM
  4. Vendor Selection!!
    By skylitz in forum Access
    Replies: 2
    Last Post: 08-16-2010, 04:09 AM
  5. Data selection
    By cesander in forum Forms
    Replies: 0
    Last Post: 09-18-2008, 02:24 PM

Tags for this Thread

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