chrisbrookeanna
Registered User.
- Local time
- Today, 00:35
- Joined
- Apr 6, 2004
- Messages
- 14
Hi Ive got this code:-
Function Old_values(Object As Form)
Dim ctlTextbox As Control
For Each ctlTextbox In Object.Controls
If ctlTextbox.ControlType = acTextBox Then
ctlTextbox.Value = ctlTextbox.OldValue
End If
Next ctlTextbox
End Function
I want to pass into it different forms but I keep getting type mismatch errors, im calling it by:-
Old_values ("Functional Data Set") - what should this be?
Function Old_values(Object As Form)
Dim ctlTextbox As Control
For Each ctlTextbox In Object.Controls
If ctlTextbox.ControlType = acTextBox Then
ctlTextbox.Value = ctlTextbox.OldValue
End If
Next ctlTextbox
End Function
I want to pass into it different forms but I keep getting type mismatch errors, im calling it by:-
Old_values ("Functional Data Set") - what should this be?