Results 1 to 13 of 13
  1. #1
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145

    What can I use in place of a lookup field?

    I've read that using lookup fields is a bad thing. But it might be ok if you do it on the form level instead of the table level? How does one use lookups on the form level and not the table level? Thanks!

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I never use lookup FIELDS.

    At the form level, use combo box or list box.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Have you read this http://access.mvps.org/access/lookupfields.htm

    Setting the lookup properties in tables is essentially creating a combo or listbox. Dragging the field from the Field List when building a form or report will create the combo or list box according to the settings in table (or when using design wizard). This seems convenient but is really annoying when viewing tables directly. As a developer, when I view tables I want to see the true contents of field, not some alias. I NEVER set lookup in table.
    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
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    Thanks guys! very helpful

  5. #5
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    So I put in combo boxes in the form that pull in values from another table and it seems to work alright but when i save and close the form it doesnt save the values ive selected for any combo boxes

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Are the comboboxes bound to fields of the form RecordSource?
    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.

  7. #7
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    I dont think they are, how would I go about doing that?

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Set the combobox ControlSource property, just like with textboxes.
    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.

  9. #9
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    So I've got a table of parts and a table of packages for the parts. When the form opens I want to select the packages from a drop down from the packages table, which works alright, but doesnt save. So what I need to do is set the control source of the package combo box on the form to the package in the package table? Correct? Thanks!

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I don't think so.

    Are you creating a record in Parts? You need to select a package for the Parts record? Then bind combobox to field of Parts table so the package selected from combobox list will be saved in Parts.
    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.

  11. #11
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    Figured it out, thanks for your help! One more problem with this --

    So I have a datasheet form of parts and a form (call it the edit form) to edit part data which pops up when a part is clicked in the datasheet form. The combo box is in this edit form. When i select a package in the edit form and close it works fine, but then in the datasheet form it shows the package ID instead of the package name. Is there anyway to make it show the package name instead?

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    But you still want to save the package ID, right? That requires a multi-column combobox. Review http://datapigtechnologies.com/flash...combobox3.html
    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.

  13. #13
    alexandervj is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    145
    Awesome, thanks!

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

Similar Threads

  1. Replies: 11
    Last Post: 09-12-2013, 04:56 AM
  2. Replies: 9
    Last Post: 08-20-2013, 09:59 AM
  3. Can you place Multiple Field Names to a Single Index?
    By VanillaAwesome in forum Access
    Replies: 2
    Last Post: 08-05-2012, 04:40 PM
  4. Replies: 1
    Last Post: 02-29-2012, 10:13 PM
  5. Use a lookup field to influence values in another field
    By nathanrt in forum Database Design
    Replies: 3
    Last Post: 01-13-2011, 03:40 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