lynsey2
Registered User.
- Local time
- Today, 11:03
- Joined
- Jun 18, 2002
- Messages
- 439
OK guy's I have a text box on my form for the number of days a script has to be for. (Well 7 text boxes for 7 different drugs, each drug needs to be able to be for different amount of days if the Doc wants)
All I need to do is Fill this out automatically from the start and stop date and if the doc wants he/she can change it.
In the control source of Text box 1 I have
=IIf(IsNull([Strength1])=False,[Forms]![ARTScript]![Stop Date]-[Forms]![ARTScript]![Start Date],"")
This fills out the field with what I need to start with but does not allow change.
How can I get it to fill out the field but allow me to overwrite it with what I want??
do i need to do some kinda code in the On Got Focus event???
All I need to do is Fill this out automatically from the start and stop date and if the doc wants he/she can change it.
In the control source of Text box 1 I have
=IIf(IsNull([Strength1])=False,[Forms]![ARTScript]![Stop Date]-[Forms]![ARTScript]![Start Date],"")
This fills out the field with what I need to start with but does not allow change.
How can I get it to fill out the field but allow me to overwrite it with what I want??
do i need to do some kinda code in the On Got Focus event???