probably the best way to approach this is to, say, have a button whiuch the user presses to indicate the order is shipped. and attach some code behind that button that sets the ship date, or allows the user to set a shipdate.
then lock the button in futures so users cannot set a new ship date AND cannot edit the ship date
so it comes down to you, do you want to allow your users to set shipping date or do you only want set the ship date based on the current date?
you can lock the button on the basis of the shipping date column
if there is a valid date in shipdate then disable the button. put soem code in the forms on current event. eg:-
Code:
if (isdate(mydatecontrol)) = true then 'test to see if there is a valid date in shipdate
mybuttoncontrol.enabled = false 'if there is a valid date then disable the button
else
mybuttoncontrol.enabled = true 'otherewise disable the button so a user cannot set another shipping date
endif
this can be rewritten to simplfy the logic
Code:
mybuttoncontrol.enabled = NOT isdate(mydatecontrol)
functionally its the same as above but expresses it as a single statement. note you may need to check for null values.
how you handle users addign dates other than today I'll leave up to you. ytou could use a modal dialog, you could use the button to display a date picker control set the default value to today, and set the value of shipping date assuming the user selects a date. if a date is selected then disable the button . you need to work out a strategy to lock the shipping date control so a user cannot edit the date once set