Saturday, February 6, 2010

How can I link a user ActiveX control to a field in a Access DataBase?

I am trying to create a User ActiveX control and linking to a field in a Access Database. This control should accept only numbers as an entry, such as amount (Dollar), age, etc.


I thank in adavance for any help.How can I link a user ActiveX control to a field in a Access DataBase?
You can intercept the KEY message, and discard all non numeric key...





The DBEdit of VCL framework have two property


DataSource and DataField





When you assign the field to control.. the control check the datatype of field, and accept only values for datatypeHow can I link a user ActiveX control to a field in a Access DataBase?
Why not just use a Textbox for this and then validate the information within the textbox for the proper data entry. You can even format the textbox to what type of entry can be entered into this box. If your trying to use a specific control on a form you first need to access it via the toolbox and then you can add it to the form and configure it as necessary.

No comments:

Post a Comment