Results 1 to 3 of 3
  1. #1
    emassey0411 is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2022
    Posts
    10

    Referencing a Date from a different table in a form

    Question - can you reference a date from a table into a form that was created from a different table. I am using
    Code:
     =[cmbBox].[column](x)
    for all the text columns that I am bringing into the form but I need to bring in a date. I have the field as a Short Text with a Short Date input mask but it isn't bring the information into the form.

    Also, can you do the same thing with a Yes/No field? If so, how??



    Thanks for the help

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,118
    You can reference\display any column in the row source of a combo as long as you include it in the row source and you set the Columns (number of) property to match the row source field count.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,811
    Maybe research DLookup, as long as there is a relationship that "ties" records together between two tables - since I'm not gleaning from your post that you want this to be in the combo list. So that could work if it fits the need and if one half of that relationship was "x" as long as the other half was in the other table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. syntax for referencing a Table Field
    By mainerain in forum Programming
    Replies: 2
    Last Post: 02-18-2019, 02:18 PM
  2. Replies: 14
    Last Post: 10-24-2018, 04:37 AM
  3. Replies: 18
    Last Post: 05-07-2015, 10:59 AM
  4. Replies: 1
    Last Post: 09-11-2014, 11:02 AM
  5. Referencing multiple records in a table
    By akbigcat86 in forum Programming
    Replies: 14
    Last Post: 07-22-2010, 01:30 PM

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