I'm trying to write some basic code to pull the values of two text boxes on an access form. However, I have found the only way to do such is to first set the field's focus and then grab the values. This forces the user to see
the setfocus actions, and with 10 fields, that can be very annoying. Any suggestions? The code is in a VBA module.
Dim strusername as string, strpassword as string
txtusername.setfocus
strusername = txtusername.text
txtpassword.setfocus
strpassword = txtpassword.text
Thanks!
-Anthony
the setfocus actions, and with 10 fields, that can be very annoying. Any suggestions? The code is in a VBA module.
Dim strusername as string, strpassword as string
txtusername.setfocus
strusername = txtusername.text
txtpassword.setfocus
strpassword = txtpassword.text
Thanks!
-Anthony