megatronixs
Registered User.
- Local time
 - Today, 04:53
 
- Joined
 - Aug 17, 2012
 
- Messages
 - 719
 
Hi all,
 
I have some code to check if a date is filled in a field, if so, then the button that enters the date in the field are disabled.
The problem I have, it is not doing this on record basis, but on the whole field.
If I have already one record like that filled in, all other records will have the field and button greyed out (disabled)
How can I make it test on a field in the record instead of the whole column?
 
This is the code that I use when the form loads:
	
	
	
		
 
Actually the field and button are disabled once the button is pressed to create a new QC record, the date is entered and both should be greyed out so they can't be used again.
 
Any ideas where it could go wrong?
 
Greetings.
 I have some code to check if a date is filled in a field, if so, then the button that enters the date in the field are disabled.
The problem I have, it is not doing this on record basis, but on the whole field.
If I have already one record like that filled in, all other records will have the field and button greyed out (disabled)
How can I make it test on a field in the record instead of the whole column?
This is the code that I use when the form loads:
		Code:
	
	
	If Me.final_1st <> "" Then
Me.final_4_eye_1st.Enabled = False
Me.add_qc_1.Enabled = False
Else
Me.final_1st.Enabled = True
Me.add_qc_1.Enabled = True
End If
	Actually the field and button are disabled once the button is pressed to create a new QC record, the date is entered and both should be greyed out so they can't be used again.
Any ideas where it could go wrong?
Greetings.