HI, i'm writing a DB which i'm going to turn into an app later on. It has a few fields which I want the user to be able define the first time he/she opens up the database. To keep all the queries and VB etc. working i'm not actually going to re-name the fields, just the labels of the fields on the forms that they appear on in the database. I was going to write out a really lengthy bit of VB to do this when I stumbled upon the "For Each... Next " statement in the help files.
The statement is
For Each frm In Application.Forms
If Statement......
Next
From this i'm assuming that I can write a procedure that looks at each control in each form, and if the caption is "Sliding1" (the name of the field) then replace it with a variable. I can manage the If statement bit but
For Each ctl in Application.Forms doesn't work. Can anyone help with the code please.
thanks, Tom.
The statement is
For Each frm In Application.Forms
If Statement......
Next
From this i'm assuming that I can write a procedure that looks at each control in each form, and if the caption is "Sliding1" (the name of the field) then replace it with a variable. I can manage the If statement bit but
For Each ctl in Application.Forms doesn't work. Can anyone help with the code please.
thanks, Tom.