Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus statement.

Status
Not open for further replies.

kkarren

Technical User
Mar 30, 2000
33
US
I have three field in a database that need to be equal if there are no entries in them I can not get the following If statement to do what I want.&nbsp;&nbsp;It I use a simple let statement without the If statments the field will change once I leave the field.&nbsp;&nbsp;But I don't want them to change if they are already populated.&nbsp;&nbsp;Any suggestions will be appreciated.&nbsp;&nbsp;<br><br>Private Sub YSR_Test_Date_LostFocus()<br>If [SASSI_Test_Date] = Null Then<br>&nbsp;&nbsp;&nbsp;[SASSI_Test_Date] = [YSR_Test_Date]<br>End If<br>If [SPS_Test_Date] = Null Then<br>&nbsp;&nbsp;&nbsp;[SPS_Test_Date] = [YSR_Test_Date]<br>End If<br><br><br>End Sub<br>
 
Try this:<br><br>If IsNull(SASSI_TEST_DATE) = True Then<br>&nbsp;&nbsp;&nbsp;&nbsp;SASSI_TEST_DATE = YSR_Test_Date<br>End If
 
That really worked well thanks for you help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top