B
Barcode
Hello
I have this code that filtered from query to view the word list I write on a
field on a form,
so with every key I press on the field the word list it be closer.
This code it work on Access 2000 and not work on Access 2007.
Any help please to make it work on MS Access 2007 ?
Thanks a lot.
Private Sub Search_Change()
If Me.Option = 1 Then
Me.serv.Form.RecordSource = "SearchSv" ' Query
ElseIf Me.Option = 2 Then
Me.serv.Form.RecordSource = "SearchArb" ' Query
ElseIf Me.Option = 3 Then
Me.serv.Form.RecordSource = "SearchSv2" ' Query
ElseIf Me.Option = 4 Then
Me.serv.Form.RecordSource = "SearchArb2" ' Query
End If
Me.Requery
DoCmd.Requery "serv"
Dim dbs As Database, rs As Recordset
Set dbs = CurrentDb
Set rs = Me.serv.Form.Recordset
SendKeys "{F2 2}"
Me.Requery
End Sub
I have this code that filtered from query to view the word list I write on a
field on a form,
so with every key I press on the field the word list it be closer.
This code it work on Access 2000 and not work on Access 2007.
Any help please to make it work on MS Access 2007 ?
Thanks a lot.
Private Sub Search_Change()
If Me.Option = 1 Then
Me.serv.Form.RecordSource = "SearchSv" ' Query
ElseIf Me.Option = 2 Then
Me.serv.Form.RecordSource = "SearchArb" ' Query
ElseIf Me.Option = 3 Then
Me.serv.Form.RecordSource = "SearchSv2" ' Query
ElseIf Me.Option = 4 Then
Me.serv.Form.RecordSource = "SearchArb2" ' Query
End If
Me.Requery
DoCmd.Requery "serv"
Dim dbs As Database, rs As Recordset
Set dbs = CurrentDb
Set rs = Me.serv.Form.Recordset
SendKeys "{F2 2}"
Me.Requery
End Sub