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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Goto Last Record that is not "None"

Status
Not open for further replies.

infinitx

Technical User
Feb 26, 2004
212
0
0
US
Hi,

In the Forms OnOpen Event, I want a textbox (txtICL) to go to the Last record that is not "None".

How would I go about doing this?

Thanks a bunch!

----
Alex

Anytime things appear to be going better, you have overlooked something.
 
Take a look at RecordSetClone, FindLast and Bookmak.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I have this down so far:

Code:
    Dim rst As Recordset
    Dim strSearchName As String

    Set rst = Me.RecordsetClone
    strSearchName = Str(Me!ICL_3)
    rst.FindLast "ICL_3 = " & strSearchName
        If rst.NoMatch Then
        Else
            Me.Bookmark = rst.Bookmark
        End If
    rst.Close

I believe that that code is to be used with a combo box.

How would I go about editing it? Where would I set the criteria for the textbox to not display "None" records?

I'm sorry if this is a stupid question, but I would appreciate your help! :)

Thanks!

----
Alex

Anytime things appear to be going better, you have overlooked something.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top