G
Guest
I have a unbound form with 2 controls only. One control is ProductCode which is a combo box bounded to a query. Another control is the description which is a text box. When the ProductCode is selected from the pull down list, I want to retrive the description from the product master table. Here is my codes and the error says .Filter is invalid use of property. can anyone help me? TI
Dim cnn1 As New ADODB.Connectio
Dim rst1 As New ADODB.Recordse
Dim intProductCode As Strin
Set cnn1 = CurrentProject.Connectio
rst1.Open "tblProduct", cnn1, adOpenKeyset, adLockOptimistic, adCmdTableDirec
intProductCode = Me!ProductCod
rst1.Filter "[ProductCode] = intProductCode
Me!ProductDescription = rst1!ProductDescription
Dim cnn1 As New ADODB.Connectio
Dim rst1 As New ADODB.Recordse
Dim intProductCode As Strin
Set cnn1 = CurrentProject.Connectio
rst1.Open "tblProduct", cnn1, adOpenKeyset, adLockOptimistic, adCmdTableDirec
intProductCode = Me!ProductCod
rst1.Filter "[ProductCode] = intProductCode
Me!ProductDescription = rst1!ProductDescription