Hi,<br>I am trying to requery a recordset so that a form changes record based on a combo box.<br>I thought I should be able to use a requery rather than run the whole set recordset code again.<br><br>I am using this code:<br><br>Sub SetRS(FormName As String, strSQL As String)<br>Set rst = New ADODB.Recordset<br>rst.Open strSQL, CurrentProject.Connection, , , adCmdText<br>Set Forms(FormName).Recordset = rst<br>End Sub<br><br>Private Sub Form_Open(Cancel As Integer)<br>Call RS.SetRS(Me.Name, "Select * from Customers<br>where name = '" & NameCombo.Value & "'"
<br>End Sub<br><br>I thought I would be able to then use this:<br><br>Private Sub NameCombo_Change()<br>Form.Recordset.Requery<br>End Sub<br><br>Anybody see where I'm going wrong?<br>