Silly problem with finding a control (1 Viewer)

daninthemix

Registered User.
Local time
Today, 19:19
Joined
Nov 25, 2005
Messages
41
Hey all,

I have this code on a number of difference forms:

[Forms]![Care Packs].Customer.SetFocus

This is executed by an event in another form that loads the new form and starts dumping in values. For some reason I'm suddenly getting "Object doesn't support this property or method. 'Object' is simply a textbox that is enabled, but is also locked altho to my knowledge this isn't a problem. It's late and I've been working for hours so this may be something simple I've overlooked...need to step away for a while.

Any thoughts?
 
try unlocking the form... dumping the text... and then relocking the form in your code.

syntax as follows:
txtbox.Locked = False

J.
 
Tried it and it won't even let me unlock it -- "object doesn't support this property or method".

Any other ideas?
 
Phil - thanks very much, you've sorted it! I was confusing fields and controls. I owe you one.
 

Users who are viewing this thread

Back
Top Bottom