Results 1 to 8 of 8
  1. #1
    tabbycat1234 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    26

    LOOKUP Field

    Can someone tell me of a good tutorial or a good way to make a looking field.



    I went into design view in my form, selected the combo box. I was under the understanding that three choices was suppose to come up but I only have two choices.

    Any help would be appreciated

  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,640
    The form needs to be bound to a table to see the third option. If yours is bound to a query, you can create a form bound to a table and use the wizard, then you can copy the code the wizard creates to your real form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tabbycat1234 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    26

    Bound to a table

    What do you mean that it needs to be bound to a table? I have relationships set within my tables but what do I need to do to bound it to a table?

    I want to be able to look up the first and last name of the students. What is the best way to do that?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I'm saying that the record source of the form has to be a table for the wizard to offer the third option. The combo is fine for looking up the names and going to that record.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    tabbycat1234 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    26

    Record Source

    The record source is a table. I am still not getting the third option.

  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,640
    I've never seen it not offer the third option in that case. This is the type of code the wizard will build (this is a text field; you wouldn't want the single quotes around a numeric value):

    Code:
    Dim rs As Object
    
      Set rs = Me.Recordset.Clone
      rs.FindFirst "[Acc_ID] = '" & Me![cmbFindAdvDr] & "'"
      Me.Bookmark = rs.Bookmark
      Me.cmbFindAdvDr = ""
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    tabbycat1234 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    26

    Code

    I have not gotten into how to write codes. Should I upload my database on here so I can learn to do it or should I just try to figure it out another way

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Here's where code goes:

    http://www.baldyweb.com/FirstVBA.htm
    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. Exporting Lookup Field To Excel
    By HarryScofs in forum Access
    Replies: 1
    Last Post: 07-27-2011, 09:42 AM
  2. 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
  3. lookup field error
    By al jacobs in forum Access
    Replies: 1
    Last Post: 10-22-2010, 10:05 AM
  4. Using Lookup to Create a new Field
    By jtinjr in forum Access
    Replies: 1
    Last Post: 09-25-2010, 11:30 AM
  5. Using tbale field in Lookup Wizard
    By dotancohen in forum Database Design
    Replies: 5
    Last Post: 12-10-2009, 02:54 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