Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bringing up a form from within a form, without the filter mode

Status
Not open for further replies.
Nov 27, 2006
2
US
Is there anyway to bring a form up from another form, that displays the exact same record, but without a filter?(so all the records can be searched through)
 
this answer is really similar to the question prior to this one concerning Bookmarks
Replace FieldName with the name of the Field containing the data you are searching on
Replace FormName with the name of the Form where you make your selection
Replace TextBoxName with the name of the Control that Contains the selection criteria


Private Sub Form_Load()
With Me.RecordsetClone
Me.RecordsetClone.FindFirst "[FieldName] = " & Forms]![FormName].[TextBoxName]
If Not .EOF Then
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
End With

PaulF
 
BTW - the previous example was based on the value in the TextBox being a Numeric such as an ID field. If it is a Text Field then you need to add the appropriate delimiters

Me.RecordsetClone.FindFirst "[FieldName] = '" &
Forms]![FormName].[TextBoxName] & "'"

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top