English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello Everyone,

I currently have a button that requerys, closes, & opens a form. but I need it to go to the next tab stop before it closes what shoudl I add to my codding below to make it Tab, requery, close, & open?


Private Sub Command39_Click()

DoCmd.Requery

DoCmd.Close
DoCmd.OpenForm "area 93 master list"
Forms![area 93 master list]!List0.Requery

End Sub

2006-11-08 11:26:06 · 1 answers · asked by relms2000 1 in Computers & Internet Programming & Design

1 answers

Use the Sendkeys function to insert the tab wherever necessary:

Private Sub Command39_Click()
sendkeys "{TAB}"
DoCmd.Requery

DoCmd.Close
DoCmd.OpenForm "area 93 master list"
Forms![area 93 master list]!List0.Requery

End Sub

2006-11-08 11:36:32 · answer #1 · answered by Yahoo Qs-Ans 3 · 0 0

fedest.com, questions and answers