R Rania01 Member Local time Today, 17:37 Joined Oct 9, 2021 Messages 59 Mar 11, 2022 #1 Dear all, How to programatically set Textbox to be required? If value on Status on the textbox Datum must be required Thank you in advance
Dear all, How to programatically set Textbox to be required? If value on Status on the textbox Datum must be required Thank you in advance
theDBguy I’m here to help Staff member Local time Today, 08:37 Joined Oct 29, 2018 Messages 22,771 Mar 11, 2022 #2 Is the form bound? If so, it might be easier to just set the field in the table as required. Otherwise, the common approach is to use the form's BeforeUpdate event to validate the form and make sure required fields are entered.
Is the form bound? If so, it might be easier to just set the field in the table as required. Otherwise, the common approach is to use the form's BeforeUpdate event to validate the form and make sure required fields are entered.
R Rania01 Member Local time Today, 17:37 Joined Oct 9, 2021 Messages 59 Mar 11, 2022 #3 I use textbox unbound, I would like only the Datum must be required if user select value on Status if on status is empty on the datum not required Thank you
I use textbox unbound, I would like only the Datum must be required if user select value on Status if on status is empty on the datum not required Thank you
bastanu AWF VIP Local time Today, 08:37 Joined Apr 13, 2010 Messages 1,406 Mar 11, 2022 #4 Look up Access form validation BeforeUpdate as suggested by theDBGuy: Google Search Here is the first link: Perform simple data validation checks when editing a record in a form Access VBA conceptual documentation docs.microsoft.com
Look up Access form validation BeforeUpdate as suggested by theDBGuy: Google Search Here is the first link: Perform simple data validation checks when editing a record in a form Access VBA conceptual documentation docs.microsoft.com
Gasman Enthusiastic Amateur Local time Today, 16:37 Joined Sep 21, 2011 Messages 17,491 Mar 11, 2022 #5 Rania01 said: I use textbox unbound, I would like only the Datum must be required if user select value on Status if on status is empty on the datum not required Thank you Click to expand... Wouldn't it make more sense to have the status first then?
Rania01 said: I use textbox unbound, I would like only the Datum must be required if user select value on Status if on status is empty on the datum not required Thank you Click to expand... Wouldn't it make more sense to have the status first then?
R Rania01 Member Local time Today, 17:37 Joined Oct 9, 2021 Messages 59 Mar 11, 2022 #6 yes of course