![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am losing my mind! I've been away from Access for several months and a friend just asked for some help. I can't get it! She wants to 1. Choose a Name and License Number from a drop-down (Have it: cboCheckName) 2. Once the name is chosen, show ALL the records from the same table, that have a match for Name and LicenseNumber. She has a Form with cboCheckName on it: frmPayments And a subform on the form sfrmPayments I put the following code into AfterUpdate of the combo box: Private Sub cboCheckName_AfterUpdate() ' FILL the subform with checks for the person selected Dim rs As Object Set rs = Me.Recordset.Clone rs.FindFirst "[CheckName] =" & Me.cboCheckName & _ " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) Me.Bookmark = rs.Bookmark rs.Close End Sub On rs.FindFirst, I get "Object doesn't support this property or method". WHAT is wrong? This should be so simple! thank you - Sara You have frmPayments and sfrmPayments. I have no idea how you present |
#3
| |||
| |||
|
|
sara wrote: I am losing my mind! *I've been away from Access for several months and a friend just asked for some help. *I can't get it! She wants to 1. *Choose a Name and License Number from a drop-down (Have it: cboCheckName) 2. *Once the name is chosen, show ALL the records from the same table, that have a match for Name and LicenseNumber. She has a Form with cboCheckName on it: *frmPayments And a subform on the form *sfrmPayments I put the following code into AfterUpdate of the combo box: Private Sub cboCheckName_AfterUpdate() ' *FILL the subform with checks for the person selected * * *Dim rs As Object * * *Set rs = Me.Recordset.Clone * * rs.FindFirst "[CheckName] =" & Me.cboCheckName & _ * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * Me.Bookmark = rs.Bookmark * * rs.Close End Sub On rs.FindFirst, I get "Object doesn't support this property or method". WHAT is wrong? *This should be so simple! thank you - Sara You have frmPayments and sfrmPayments. *I have no idea how you present the data. *Is 1 a single rec form, the other continous or datasheet? Look at Filter * * * * Me.Filter = "CheckName =" & Me.cboCheckName & _ * * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * * * Me.FilterOn = True- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
On Apr 17, 5:23 pm, Salad <o... (AT) vinegar (DOT) com> wrote: sara wrote: I am losing my mind! I've been away from Access for several months and a friend just asked for some help. I can't get it! She wants to 1. Choose a Name and License Number from a drop-down (Have it: cboCheckName) 2. Once the name is chosen, show ALL the records from the same table, that have a match for Name and LicenseNumber. She has a Form with cboCheckName on it: frmPayments And a subform on the form sfrmPayments I put the following code into AfterUpdate of the combo box: Private Sub cboCheckName_AfterUpdate() ' FILL the subform with checks for the person selected Dim rs As Object Set rs = Me.Recordset.Clone rs.FindFirst "[CheckName] =" & Me.cboCheckName & _ " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) Me.Bookmark = rs.Bookmark rs.Close End Sub On rs.FindFirst, I get "Object doesn't support this property or method". WHAT is wrong? This should be so simple! thank you - Sara You have frmPayments and sfrmPayments. I have no idea how you present the data. Is 1 a single rec form, the other continous or datasheet? Look at Filter Me.Filter = "CheckName =" & Me.cboCheckName & _ " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) Me.FilterOn = True- Hide quoted text - - Show quoted text - Thanks - The form is just the combo box and the subform on it. The subform is Continuous records - linked to the Checkname and License Number chosen in the Combo Box. When you say "Look at filter" - do I put that in the After Update event? Or does it go on the form somehow? Sara |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
On Apr 17, 5:23*pm, Salad <o... (AT) vinegar (DOT) com> wrote: sara wrote: I am losing my mind! *I've been away from Access for several months and a friend just asked for some help. *I can't get it! She wants to 1. *Choose a Name and License Number from a drop-down (Have it: cboCheckName) 2. *Once the name is chosen, show ALL the records from the same table, that have a match for Name and LicenseNumber. She has a Form with cboCheckName on it: *frmPayments And a subform on the form *sfrmPayments I put the following code into AfterUpdate of the combo box: Private Sub cboCheckName_AfterUpdate() ' *FILL the subform with checks for the person selected * * *Dim rs As Object * * *Set rs = Me.Recordset.Clone * * rs.FindFirst "[CheckName] =" & Me.cboCheckName & _ * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * Me.Bookmark = rs.Bookmark * * rs.Close End Sub On rs.FindFirst, I get "Object doesn't support this property or method". WHAT is wrong? *This should be so simple! thank you - Sara You have frmPayments and sfrmPayments. *I have no idea how you present the data. *Is 1 a single rec form, the other continous or datasheet? Look at Filter * * * * Me.Filter = "CheckName =" & Me.cboCheckName & _ * * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * * * Me.FilterOn = True- Hide quoted text - - Show quoted text - Thanks - The form is just the combo box and the subform on it. The subform is Continuous records - linked to the Checkname and License Number chosen in the Combo Box. When you say "Look at filter" - do I put that in the After Update event? *Or does it go on the form somehow? Sara- Hide quoted text - - Show quoted text - |
#7
| |||
| |||
|
|
On Apr 17, 4:46*pm, "saraqp... (AT) yahoo (DOT) com" <saraqp... (AT) yahoo (DOT) com> wrote: On Apr 17, 5:23*pm, Salad <o... (AT) vinegar (DOT) com> wrote: sara wrote: I am losing my mind! *I've been away from Access for several months and a friend just asked for some help. *I can't get it! She wants to 1. *Choose a Name and License Number from a drop-down (Have it: cboCheckName) 2. *Once the name is chosen, show ALL the records from the same table, that have a match for Name and LicenseNumber. She has a Form with cboCheckName on it: *frmPayments And a subform on the form *sfrmPayments I put the following code into AfterUpdate of the combo box: Private Sub cboCheckName_AfterUpdate() ' *FILL the subform with checks for the person selected * * *Dim rs As Object * * *Set rs = Me.Recordset.Clone * * rs.FindFirst "[CheckName] =" & Me.cboCheckName & _ * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * Me.Bookmark = rs.Bookmark * * rs.Close End Sub On rs.FindFirst, I get "Object doesn't support this property or method". WHAT is wrong? *This should be so simple! thank you - Sara You have frmPayments and sfrmPayments. *I have no idea how you present the data. *Is 1 a single rec form, the other continous or datasheet? Look at Filter * * * * Me.Filter = "CheckName =" & Me.cboCheckName & _ * * * " And [LicAcctNum] = " & (Me.cboCheckName.Column(1)) * * * * Me.FilterOn = True- Hide quoted text - - Show quoted text - Thanks - The form is just the combo box and the subform on it. The subform is Continuous records - linked to the Checkname and License Number chosen in the Combo Box. When you say "Look at filter" - do I put that in the After Update event? *Or does it go on the form somehow? Sara- Hide quoted text - - Show quoted text - I don't think you need any code on your main form, add another field called LicenseNbr and set its source to * *=cboCheckName.column(1) and set both the master / child links to your subform to * *cboCheckName, licenceNbr when you choose a name, the licenseNbr will be displayed on the main form and the payments will be displayed on the subform- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |