kaylachris
Registered User.
- Local time
- Today, 13:43
- Joined
- Jun 9, 2010
- Messages
- 10
Hopefully I explain my intentions clearly. I have a form named MainSwitch which contains a unbound textbox named searchSSN and a button named open_SMoverview. What I want to be able to do is type in a SSN into the textbox and then click the button which would open another form named SMoverview to the correct record for the SSN provided. Also, pressing the enter key to preform this operation is not ideal because I intend to use this same textbox with various other buttons for similar purposes (i.e. type in a SSN and pull up a report on an individual). I also thought about using a query to populate a listbox... but theres over 400 individuals you'd have to scroll through so it would be practical.
I realize by allowing users to enter search criteria is somewhat dangerous and will require some error checking and validation. However, I'm certain I can figure that portion out later down the line once I have the inital portion figured out. What I'm asking for is a good referance source to figure out how to right the VBA to make this work. Any help would be greatly appreciated. Lastly, I'm fairly new to Access but do have a lil bit of programming experiance and understand the basic concepts of how VBA should work... i just don't know the proper syntax.
forms:
MainSwitch(unbound form,custom switchboard)
-searchSSN(unbound textbox)
-open_SMoverview(button)
SMoverview(bound form to data_SM, shows all data for an individual)
tables:
data_SM
I realize by allowing users to enter search criteria is somewhat dangerous and will require some error checking and validation. However, I'm certain I can figure that portion out later down the line once I have the inital portion figured out. What I'm asking for is a good referance source to figure out how to right the VBA to make this work. Any help would be greatly appreciated. Lastly, I'm fairly new to Access but do have a lil bit of programming experiance and understand the basic concepts of how VBA should work... i just don't know the proper syntax.
forms:
MainSwitch(unbound form,custom switchboard)
-searchSSN(unbound textbox)
-open_SMoverview(button)
SMoverview(bound form to data_SM, shows all data for an individual)
tables:
data_SM