Boy, as I think about it, I realize that I am using Access very much different then standard, or so it may be.
I don't use record locators. I don't use direct screen to database tables functionality. Instead I load the unique identifying names of my data with different Filter Buttons and by selecting (dbl Clk) the field holder for that tag, the VB then loads in the associated data, which in many cases is in multiple tables through a series of Select calls. Then if the data needs to be duplicated, deleted or modified, there is a data record add and delete button which query the database to see if the point is being modified or deleted and take associated action.
As such, many of the built in feature of Access to populate a screen with control source etc are not being used. For my application this is the best way to address it. Multiple hundreds of Query Tables are just way to cumbersome.
So that is why if I could just in a single call without a loop, insert the SQl'd data on the screen it would be very handy.
As example, In my tables/database I name a data point BedTypes. On any screen, I name the Text or Combo or Button or Whatever Bedtypes.
When I SQL the data, I get rst.Fields![BedTypes], if at that point I could construct the screen tag name from the Database Tagname and have the screen data field update it would be very functionally significant.
Such that I could say
ScreenTag = Me.Bedtypes (derived from rst.Fields![Bedtype] wit string functions)
CTL.ScreenTag or
ScreenTag = rst.Fields![TagName] whatever would work for the object
That kind of thing.
As far as passing screen to screen, no that wasn't what I meant. I meant I could use the functionality of this feature on many already developed screens by mods to the VB code, which I have already done with the code that you helped me with.
Yes I have many combo, text, labels and a great of them started with Tag, so I needed to use the IsNumeric call to differentiate.
I'm also wondering why you want to use your approach? Is it ease of programming? Efficiency of execution? Something else? The answer will influence the solution (e.g. the control loop is not exactly efficient!).
The answer is both. I am a low level assembler style programmer and old habits die hard. But I hate to see tons of lines of, while efficient code, very cumbersome code. That is why I would be hesitant to loop the object to look for one tag. granted in the numerous 400 to 600 point screen arrays I had, it worked very well. But having to loop through the object structure on every tag would be contrary to my religion.
I do thank you and it reduced my code by probably three thousand lines of very ugly code.
Have a fantastic day and thanks again.