Results 1 to 4 of 4
  1. #1
    RangerJeff is offline Novice
    Windows 10 Office 365
    Join Date
    Aug 2020
    Posts
    10

    verifying data enter between form and table

    Still kinda new to ACCES. WHat is have is a reservation system.

    I have a table with the schedule for the season. When I create the reservation for a person using a form which is updating another table called ResTrip, when they pick the date they want to go, I want to make sure it is in the schedule table

    If they pick an non-existent date,, I want a message to appear "Invalid date", otherwise just continue.

    It should be a simple IF THEN ELSE but can't figure out how to get a YES/NO answer out of a query so I can do a logic compare. I was hoping to put this in a Macro, still learning VBA

    I was thinking using DLOOPKUP, but no joy yet.



    Any suggestions?

  2. #2
    ssanfu is offline Master of Nothing
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,289
    Really not enough information about your dB to give a valid answer. It would help if you would post your dB.


    My question to you is why do you allow an invalid date to be selected? You have a table with the schedule for the season. Limit the date selections to valid dates.
    HTH
    -----
    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    8,831
    a textbox bound to a date field will give INVALID DATE error naturally , with no programming involved.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    15,504
    A ssanfu suggested --would be good to see a description of your database requirements and a copy of your current efforts.

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

Similar Threads

  1. Verifying Data Before Leaving Textbox On Form
    By MaxQTime in forum Programming
    Replies: 2
    Last Post: 06-14-2019, 07:20 AM
  2. Replies: 1
    Last Post: 09-01-2017, 10:28 AM
  3. Replies: 3
    Last Post: 10-22-2013, 02:51 PM
  4. Replies: 6
    Last Post: 04-16-2012, 01:05 AM
  5. Replies: 4
    Last Post: 02-27-2012, 10:29 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 - Senior Forums