Results 1 to 3 of 3
  1. #1
    CHOO is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2014
    Location
    England
    Posts
    5

    Date in a Form and a Table

    Hi,



    How do i get just one date in a table? At the moment, when I open the form input the information with the same 2 dates eg: 16/05/2014 and 16/05/2014, these 2 dates will appear in the table in seperate rows. How do I get it so if I put in one date I can append to that date multiple time instead of creating the same date within the table. Thanks.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Do you mean 2 dates in 1 field, or 2 dates as 2 different records, or 2 fields each with 1 date?
    If you have 2 dates in 1 field, then the field is set to the wrong data type.

  3. #3
    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
    Like ranman256, I'm not really clear as to what you're asking, but if you're saying that you want to enter a date into one Record, then have it to appear in subsequent Records, you can dynamically set the Default Value of the Control to that initial date, using its AfterUpdate. From that time forward, until you either manually change the data or close your form, the data will be entered automatically in each New Record.

    Code:
    Private Sub YourControlName_AfterUpdate()
       Me.YourControlName.DefaultValue = """" & Me.YourControlName.Value & """"
    End Sub

    This syntax is valid for Text, Number, DateTime and Boolean Datatypes.

    Linq ;0)>

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

Similar Threads

  1. Replies: 1
    Last Post: 04-16-2014, 04:25 PM
  2. Replies: 7
    Last Post: 02-25-2014, 03:11 PM
  3. Replies: 3
    Last Post: 12-24-2013, 04:20 PM
  4. Replies: 3
    Last Post: 03-15-2013, 03:16 AM
  5. Replies: 1
    Last Post: 02-06-2011, 06:36 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