How to generate objects based on database

darkmastergyz

Registered User.
Local time
Today, 05:24
Joined
May 7, 2006
Messages
85
Is there a way I can generate objects (eg. text box, button), based on what is in my database? For example, if I have 2 records with a number of 2, then it would show 2 textboxes and 2 buttons, and so on and so forth. The text boxes should be generated on the form. Is there any way to do this? thanks.
 
Look at Access help about "CreateControl" method.
 
Where would it create it, and what would it be named? thanks.
 
...

Did you even look at the help file? It explains everything there.
 
I did, but it gives me an error saying I need to be in design view. How can I open my current form in design view, change it, and then automatically make it normal form view? thanks!
 
Pretty sure the help file can answer this, too. Ask it about OpenForm methods and it'll give you a rundown on the arguments, including how to open it in design view.

Whenever you are not sure how you need to use a method or thing, *always* consult the help files. The file always has information on arguments for the method or properties for object, and gives you a listing of constants and how they will work.
 
Use the View menu. This should have a design view option and a Form view Option.
 
I know but can I open my current form to make the edits? It doesn't seem to work that way....
 

Users who are viewing this thread

Back
Top Bottom