I have a problem that's been really bugging me the last few days. I tried looking through search, but I think my problem is a bit more unique than I first thought...
I have a form that contains a list box and 37 text boxes. The text boxes have the names of d0 through d36.
When the form is ran, if d0 is a value in the list box, I want to change the backcolor for the text box on the form that is named d0.
There will be many times where d0 through d36 will be on the list box (the rowsource for the listbox is an SQL query). If that happens, then I want to change the backcolor for all text boxes that share the same name as the values in the list box.
I could provide backstory to this problem if someone wanted it. In short - I have a monthly calendar on an unbound form where I'm wanting to highlight the dates on the calendar if they exist in the table that the list box is reading from. The dates on the calendar are the d0 through d36 text boxes. I click on the text box and then click on a command button next to the calendar to go to that particular day's record (through a different form).
Does anyone have any solutions? I really appreciate any help and will offer any more information I can if needed.
Thanks!
I have a form that contains a list box and 37 text boxes. The text boxes have the names of d0 through d36.
When the form is ran, if d0 is a value in the list box, I want to change the backcolor for the text box on the form that is named d0.
There will be many times where d0 through d36 will be on the list box (the rowsource for the listbox is an SQL query). If that happens, then I want to change the backcolor for all text boxes that share the same name as the values in the list box.
I could provide backstory to this problem if someone wanted it. In short - I have a monthly calendar on an unbound form where I'm wanting to highlight the dates on the calendar if they exist in the table that the list box is reading from. The dates on the calendar are the d0 through d36 text boxes. I click on the text box and then click on a command button next to the calendar to go to that particular day's record (through a different form).
Does anyone have any solutions? I really appreciate any help and will offer any more information I can if needed.
Thanks!