I have created a form where i can scroll a drop down list of items. I can then chose an item and then use another drop down menu to chose another item. This form works perfectly when i open it from the main data base window and displays that there are 388 records. When i open this form from inside the application and i select any item from the first drop down menu it gives this message:
Run-time error 3021
No currrent record found.
The bottom of the form also indicated i only have 1 record available.
Why is this form working from the database window but not when it is called from a program? How can i fix this?
This is the coding for the modules:
Option Compare Database
Option Explicit
'After Update on drop down menu
Private Sub Combo2_AfterUpdate()
Dim strFind As String
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[ShortName] = '" & Me![Combo2] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
strFind = "SELECT DISTINCTROW [tblAssessments].[AssessID] FROM [tblAssessments] WHERE [tblAssessments].[LegislationKey] = " & Me.RecordsetClone!LegislationID & " ;"
Me.Combo6.RowSource = strFind
End Sub
Run-time error 3021
No currrent record found.
The bottom of the form also indicated i only have 1 record available.
Why is this form working from the database window but not when it is called from a program? How can i fix this?
This is the coding for the modules:
Option Compare Database
Option Explicit
'After Update on drop down menu
Private Sub Combo2_AfterUpdate()
Dim strFind As String
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[ShortName] = '" & Me![Combo2] & "'"
Me.Bookmark = Me.RecordsetClone.Bookmark
strFind = "SELECT DISTINCTROW [tblAssessments].[AssessID] FROM [tblAssessments] WHERE [tblAssessments].[LegislationKey] = " & Me.RecordsetClone!LegislationID & " ;"
Me.Combo6.RowSource = strFind
End Sub