Results 1 to 8 of 8
  1. #1
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44

    How use lookup wizard for dates?

    How does one use the lookup wizard for dates?

    It says:


    The lookup wizard doesn't apply to fields of this data type.

    I want a combo box for dates.

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    no need for a wizard.
    On the cboBox, select the property ROWSOURCE.
    click the elipsis box to the right, it will start a query.
    choose your data table
    choose your field.
    close the query.

  3. #3
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    How do I create a combo box without using the lookup wizard?

  4. #4
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44

    Anyone?

    I have a list of unique dates in one table. I have another table that will use a unique date many times. With the latter table, how do I create combo box based on the dates of the table that has a list of unique dates?

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You can associate fields from tables with your combo box using the Query Builder. This is done through the Row Source property. Other properties to consider are Column Count and Column Widths.

    .
    Click image for larger version. 

Name:	QueryBuilderCombo.jpg 
Views:	8 
Size:	51.9 KB 
ID:	16296

    Another approach is to use the wizard. Turn the wizard on by highlighting "Use Control Wizard" before adding control to your form in Design View. You can highlight Use Control Wizard by accessing it via the Ribbon. Click the "Design Tab". There will be a group. In the Controls group, there is an option to display more. Use the pulldown button in the lower right hand corner of the Controls group to display more.

  6. #6
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    I found a partial solution. I'm not offered a combination box, but I did make the field restricted to the dates I have listed in another table. I changed the field from Date/Time to Short Text.

    I used the lookup wizard.

    To my surprise, in design view, the field changed itself from a Short Text Field back to a Date/Time field.

    Microsoft, wouldn't it be easier if one could keep the field set as a Date/Time field and allow the lookup wizard to work? Why do I have to change it to something else when it changes back to a Date/Time field anyways? Another thing Microsoft, I don't want a date picker! I want a combination box for this field!

  7. #7
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    Quote Originally Posted by ItsMe View Post
    You can associate fields from tables with your combo box using the Query Builder. This is done through the Row Source property. Other properties to consider are Column Count and Column Widths.

    .
    Click image for larger version. 

Name:	QueryBuilderCombo.jpg 
Views:	8 
Size:	51.9 KB 
ID:	16296

    Another approach is to use the wizard. Turn the wizard on by highlighting "Use Control Wizard" before adding control to your form in Design View. You can highlight Use Control Wizard by accessing it via the Ribbon. Click the "Design Tab". There will be a group. In the Controls group, there is an option to display more. Use the pulldown button in the lower right hand corner of the Controls group to display more.
    I see what you mean now. I was trying to use a combo box in datasheet view directly in the table. I understand now that I have to use a form for a combo box.

    Thank you

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    If you have a combo in a table, what you really have is a lookup field. Lookup fields are not advisable. Create another table (Lookup Table) and use a form in combination with a Combo Box to query your new table. Store primary key values from your new table in Foreign Key fields of other, relative, tables.

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

Similar Threads

  1. Lookup Wizard for 2 different tables?
    By lasts3cond in forum Access
    Replies: 1
    Last Post: 12-03-2013, 03:02 PM
  2. LOOKUP WIZARD, is it possible?
    By finsmith in forum Programming
    Replies: 5
    Last Post: 01-24-2013, 09:45 AM
  3. lookup wizard
    By dafdek in forum Access
    Replies: 1
    Last Post: 01-10-2013, 04:57 PM
  4. lookup wizard
    By bigmac in forum Access
    Replies: 1
    Last Post: 03-10-2012, 02:09 PM
  5. Lookup wizard
    By VLI in forum Forms
    Replies: 7
    Last Post: 01-28-2011, 09:25 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