Matt_Hirst
Access Numpty
- Local time
- Today, 19:05
- Joined
- Nov 25, 2006
- Messages
- 15
I have an app that creates a lot on linked mysql tables in my access front-end.
What I am wanting to do is add a form with a combo box, a text box and a button. As soon as the form is loaded the combo box is populated with the fields held in all of the tables - need the names to be unique, thus if the same name appears in more than one table it should only appear once in the combo box.
The text box will then allow entry of some text and when the button is pressed the text is searched for across the field highlighted in the combo box.
Now I have made the form but I can't figure out the best way to get the field names to be in the combo box. Suppose what I am wanting to do is do a search across all of the tables and get the field names, once the field name is retrieved assign this to an array. When assigning it to the array the array needs checking to see if it already exists and if it does then ignore this.
So questions are:
* How do I search an array in access 2002?
* How do I sort an array in access 2002?
regards,
Matt
What I am wanting to do is add a form with a combo box, a text box and a button. As soon as the form is loaded the combo box is populated with the fields held in all of the tables - need the names to be unique, thus if the same name appears in more than one table it should only appear once in the combo box.
The text box will then allow entry of some text and when the button is pressed the text is searched for across the field highlighted in the combo box.
Now I have made the form but I can't figure out the best way to get the field names to be in the combo box. Suppose what I am wanting to do is do a search across all of the tables and get the field names, once the field name is retrieved assign this to an array. When assigning it to the array the array needs checking to see if it already exists and if it does then ignore this.
So questions are:
* How do I search an array in access 2002?
* How do I sort an array in access 2002?
regards,
Matt