DonkeyKong
Registered User.
- Local time
- Yesterday, 23:57
- Joined
- Jan 24, 2013
- Messages
- 61
This code works fine in Excel, but when I put it behind an Access DB it gives me a 'Run-time error '13': Type mismatch' error.
I know it doesn't like the "Forms.Label.1" but I don't know what an alternative to this would be. Any help is greatly appreciated.
Code:
Dim ctrl as control
Dim ctrlName as string
ctrlName = "whatever"
Set ctrl = Me.Controls.Add("Forms.Label.1", ctrlName, True)
I know it doesn't like the "Forms.Label.1" but I don't know what an alternative to this would be. Any help is greatly appreciated.