Using Access front end and SQL backend. Can anybody tell me if the statement below will quiery at the server and not pass the whole table for access to query. If it doesn't query at the server what code do I use to force SQL to run the query.
Dim Conn As ADODB.Connection
Dim rcdConsignee As New ADODB.Recordset
Dim strSQL As String
Set Conn = CurrentProject.Connection
Set rcdConsignee = New ADODB.Recordset
strSQL = "Select * from consignees WHERE [consigneekey] = " & Me.ConsigneeKey
rcdConsignee.Open strSQL, Conn, adOpenKeyset, adLockOptimistic
Thank you
Dim Conn As ADODB.Connection
Dim rcdConsignee As New ADODB.Recordset
Dim strSQL As String
Set Conn = CurrentProject.Connection
Set rcdConsignee = New ADODB.Recordset
strSQL = "Select * from consignees WHERE [consigneekey] = " & Me.ConsigneeKey
rcdConsignee.Open strSQL, Conn, adOpenKeyset, adLockOptimistic
Thank you