dan-cat
Registered User.
- Local time
- Today, 02:07
- Joined
- Jun 2, 2002
- Messages
- 3,415
Ok,
I've had my turkey sandwiches and mince pies and I still can't figure out what I am doing wrong with this DAO statement. All I am trying to do is list the values of each property for a given field.
Why am I getting a type mismatch error with the prp variable?
Public Sub Help()
Dim db As Database
Dim prp As Property
Set db = CurrentDb()
For Each prp In db.TableDefs("tblHelp").Fields("Santa").Properties
Debug.Print prp.Name; prp.Value
Next
End Sub
Bah! Humbug
I've had my turkey sandwiches and mince pies and I still can't figure out what I am doing wrong with this DAO statement. All I am trying to do is list the values of each property for a given field.
Why am I getting a type mismatch error with the prp variable?
Public Sub Help()
Dim db As Database
Dim prp As Property
Set db = CurrentDb()
For Each prp In db.TableDefs("tblHelp").Fields("Santa").Properties
Debug.Print prp.Name; prp.Value
Next
End Sub
Bah! Humbug