Yea, I tried that but its looking for a macro. I could do a macro to run the function but thats too much indirection, for my liking and I prefer to have it in code, where I can see and change it, rather than using macro's.
As to the purpose.......I have written an accounting package to replace the one we currently use. We are a pest control company.
Our current package uses Identifiers (A-Z) as a quick way of indicating what type of job it is. This is Typed in at the point of setting up a job/invoice, and can contain multiple entries, concatenated into a string (ACPZ etc) and stored in the field. On a form in the settings, these Identifiers can be associated with a job type (any string, its a multipurpose accounts package).
So I'm using 3 forms. It is a fairly standard order/invoice type form, with a field for the Identifiers. Double clicking in the identifier field brings up another form for those who don't want to type in the identifiers or dont know what they stand for. Thsi form has 26 checkboxes and 26 textboxes. In each text box is shown what that letter stands for, taken from underlying table. The user clicks the corresponding checkboxes and it produces a string that is put in the Identifier field of the order/invoice form.
The form I was having trouble with is a form that sets what each Identifier currently stands for. This form has 26 comboboxes and 26 labels. each labels caption is a letter A-Z. Setting any of the comboboxes changes what the Identfier stands for based on the list or typed entry.
I ended up just looping through all the controls on the form with a recordset from the main table.
Cheers
