Advertisement
Guest User

Untitled

a guest
Oct 20th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Private Sub Command0_Click()
  2. s = InputBox("What is the Mill ID?", "Mill ID", "")
  3. Me.RecordSource = "SELECT * FROM MyTableWithMillData WHERE Mill_ID = '" & s & "'"
  4. End Sub
  5.  
  6. Private Sub Command0_Click()
  7. s = InputBox("What is the Mill ID?", "Mill ID", "")
  8. Me!subformcontrolname.Form.RecordSource = "SELECT * FROM MyTableWithMillData WHERE Mill_ID = '" & s & "'"
  9. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement