need a bit of code figured out

wcrc

Registered User.
Local time
Today, 19:45
Joined
Mar 10, 2003
Messages
27
This code doesn't work! That shouldn't suprise you supercoders, but I don't know how else to write this statement.

Any help?

Code:

Private Sub Equipment_Status_AfterUpdate()
If Equipment_Status = "AWP" Then
Me!subJob_Desc.Parts_Date.Required = True
End If
End Sub

Effectively, I would like to get the subform's Parts_Date field to be required if the equipment goes into AWP (Awaiting Parts) status.

Thanks
 
wcrc,

Try:

Code:
Private Sub Equipment_Status_AfterUpdate() 
If Equipment_Status = "AWP" Then 
   Forms![YourMainForm]![subJob_Desc]!Parts_Date.Required = True 
End If 
End Sub

hth,
Wayne
 
Sorry so long on the reply, but I realized after your post that I was trying to effect a table property (Required) in a form field. Once I changed the target to the table, it worked.

Thanks for the help.
 

Users who are viewing this thread

Back
Top Bottom