i have an error in this from clause, i'm not really sure why it is. but here is the code.
VB Code:
  1. '****************************************************
  2. 'the form loads with a connection the Test Query in
  3. 'access
  4. Private Sub Form_Load()
  5. If sgrs.State = adStateClosed Then
  6.     Debug.Print "sgrs is closed"
  7.     sgrs.Open "SELECT * FROM Test", DBConn, adOpenDynamic, adLockOptimistic
  8.     Call Display(0)
  9.     sgrs.MoveFirst
  10. Else
  11.     Debug.Print "Sgrs is open"
  12.     Call Display(0)
  13. End If
  14. If Trs.State = adStateClosed Then
  15.     Debug.Print "trs is closed"
  16.     Trs.Open "SELECT * FROM Check", DBConn, adOpenDynamic, adLockOptimistic
  17. End If
  18. End Sub
Trs and sgrs are both declared in the heading as global variables. i need to access both of the tables in order to get info from both of them. the tables are in Access97