+ Reply to Thread
Results 1 to 9 of 9

How to check previous input with validation

  1. #1
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    How to check previous input with validation

    I am attempting to put together a spreadsheet that will store the details of players and anyone travelling with them.
    The important part is that if they are sharing a room that each are registered with the correct package.
    Once they have entered the name of the Hotel in the Hotel input page the 2 other dependant boxes display the package and then the length of stay.
    I just wish for the last entry in the Keyed in List page, which is offset, to be checked and if different then the warning alert sign will ask them whether they wish
    to correct the input or continue, otherwise the process will continue automatically.
    The Validation form requires a formula that I have wrestled with I cannot formulate the "If, Or, and Exact". I have attached my sample workbook.
    Any advice would be welcomed.
    Thank you,
    Jesse


    Hotel input.xlsm
    Last edited by Jesse Lyons; 11-28-2020 at 03:18 AM. Reason: No attachment

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to check previous input with validation

    Jesse,

    Neat Calendar!

    Do we assume that guests sharing a room need to be on identical "packages"?
    Because neither the Data or Hotel Input worksheets show which room is assigned to a User, or whether they are sharing or single, so the form will not know which guests are sharing a room, and therefore need the same package or not?

    Ochimus

  3. #3
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: How to check previous input with validation

    Hello Ochimus,
    No the purpose of my check is to ensure that the correct hotel has been entered and that subsequent packages in the dropdown list are what they want.
    The hotel will allocate the rooms once they receive the completed Keyed in Data sheet from me.
    I want to check that they have entered the correct information or are aware that they are entering a different set of data. The warning that comes up in Data Validation also them to cancel or continue.
    Any help would be appreciated.
    Regards
    Jesse

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: How to check previous input with validation

    I looked at this earlier and didn't understand what you wanted... What do you expect to see? Where do you expect to see it?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: How to check previous input with validation

    Hello Glen,
    I am hoping to arrange a game off season in warmer climes and I can get various packages but I need to know that the person inputting the data is aware if they input data that was not the same as the previous one.
    Any mistakes could cost them so I am trying to make sure that whatever is saved in the keyed in page is correct.
    Thank you for your interest.
    I am enjoying your tutorials as I have tried to solve this problem before troubling anyone.
    Regards
    Jesse

  6. #6
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to check previous input with validation

    Jesse,

    Is this what you want to achieve:

    Hotel Input will be only one record.
    1. Make booking:
    Record has to be created on the Client worksheet in first place.
    Guest enters their Name in Hotel Input, and selects a Hotel. That populates the Code Dependent DropList, and that choice populates the Package DropList. You need to clear the Code and Package cells if the Hotel changes, and clear the Package cell if the Code changes, otherwise they could still show previous options?
    User completes form and adds the NEW booking to the next free row on the Client worksheet.

    2. Checking an existing booking:
    Client enters Name, Hotel and Arrival date, clicks FIND button. That finds the matching booking on the CLIENT worksheet, and lists the details in the Hotel worksheet.
    If the details are still correct, they close the query which clears the Worksheet.
    If they want to add, delete or change anything they do so, then UPDATE button "overwrites" the original record on the Client Database automatically.

    Is that the process?

    Ochimus

  7. #7
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: How to check previous input with validation

    Hello Ochimus,
    Thai is exactly what I am trying to achieve.
    My transfer VBA code has the clear contents in it, dormant at the moment, and I wondered if the previous input for the Hotel, Package and length of stay could be checked
    to ensure that the person putting in the details didn't click on the wrong hotel, package, or length of stay. But more importantly that the same persons name was not
    entered twice. I was going to tweak the Formula/code to include the name.
    I think this may well be a VBA code issue? which I still have no idea how to go about it.
    Regards
    Jesse

  8. #8
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to check previous input with validation

    This does what you want.

    First stage is to FIND what is on the Booking Database already.

    Enter a Name in Booking sheet A2 and press FIND button.

    Please Login or Register  to view this content.
    Booking sheet will now show what the Database contains. Change Hotel or Package and press UPDATE

    Please Login or Register  to view this content.
    Ochimus
    Attached Files Attached Files
    Last edited by Ochimus; 11-29-2020 at 03:19 PM.

  9. #9
    Registered User
    Join Date
    11-20-2020
    Location
    Worthing, England
    MS-Off Ver
    2019
    Posts
    65

    Re: How to check previous input with validation

    Hello Ochimus,
    Thank you for the program. It certainly has guided me in achieving my goal.
    So much data to absorb and play with. I am going to enjoy this. Will keep you posted on any changes, if there are any, and additions.
    Regards
    Jesse

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to replace previous table and check if one cells value is equal to the previous one
    By baxius in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2019, 12:13 PM
  2. Check spelling in Excel, remember previous check
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-18-2018, 11:37 PM
  3. Replies: 3
    Last Post: 06-04-2015, 02:27 PM
  4. Create validation formula to check for correct user input?
    By chemoul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2012, 03:24 AM
  5. Issue Check Box validation, once check box must be ticked in range
    By franksonata in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2012, 07:42 AM
  6. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  7. Data from Input Box overrides cell input validation
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-01-2007, 02:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1