By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

Get Access Attribs of a Project Such as Form,model,report and so on

P: 1
I think through VB or VB.net access to an object, such as forms, queries, macro properties.

I want to know the content of the query.
What are the form control object,such as what attribute is the name of a text-box in the form.

thinks
Apr 4 '14 #1
Share this Question
Share on Google+
2 Replies


100+
P: 294
Can you provide some more clarity? I don't really understand your question. You want to know the content of the query? What query? Where is it? Do you mean QBE or SQL?
Apr 4 '14 #2

NeoPa
Expert Mod 15k+
P: 31,768
Office and Access expose many collections of objects to the VBA code. If you have an object, such as a form, then you can use
Expand|Select|Wrap|Line Numbers
  1. For Each X In ObjectName.CollectionName
  2.     ...
  3.     Debug.Print X.Name
  4. Next X
to cycle through each item in the collection. X refers to each item in turn as it iterates through the collection.
Apr 6 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.