Multiple text boxes with same VB functionality

EddiRae

Registered User.
Local time
Today, 02:43
Joined
Aug 4, 2007
Messages
53
Hello,
I have a form that has a layout like a spreadsheet to be used for scheduling patients.
I have the text boxes on the top to be the interns, the text boxes on the left to be the time slots and what is in the middle are the patients.

When you click on a text box in the middle, you get sent to another form that lets you select the patient and enter other information for the appointment. This form then closes and the main schedule form refreshes with the new information.

I have individual text boxes for the middle. Is there a way to have only ONE subroutine that will work for all the ON CLICKs of the text boxes? I am trying to have 15 * 41 (615) entries of the same code.

Thank you for your help!1
Eddi Rae
 
Look into using the "Tag" property on each control. Then you could run an "If....Then" statement to requery on controls with tags.
 
Also this thread:

Lock UnLock Controls The thread includes video instructions as well and covers some advanced programming techniques which I hardly understand my self...
 
Is this going to work with the OnClick Event?
 
>>>>Is this going to work with the OnClick Event?<<<

I'm not sure who you are asking, and I'm not really sure what you are asking please could you rephrase your question?
 
Last edited:
Don't thank me. Thank ChrisO. :)
 
Thanks Banana!!!

That is what I was looking for!!

Eddi Rae
 

Users who are viewing this thread

Back
Top Bottom