Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2007, 09:54 AM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using FindFirst in Dropdown Field

Due to a computer wipe I have lost my access vba program to find a record when selected from a drop down menu. What I have been able to recreate is...

Private Sub Combo30_AfterUpdate()

    Set db = CurrentDb
    rs.FindFirst = "[NameSort]= '" & [Combo30] & "'"
    [Combo30] = Null

End Sub

With Combo30 being my Drop Down menu and NameSort being the Field I am looking for in my database.

Thank you for any help on this.

Rmurray





Similar Threads
Thread Thread Starter Forum Replies Last Post
FindFirst: Method or data meber not found Totenkopf Access 2 May 26th, 2006 11:05 AM
SOS Retain values on SubmitText field and DropDown rabbit124 Classic ASP Basics 17 March 7th, 2006 07:15 PM
FindFirst retrieves wrong record Derek_05 VB Databases Basics 1 March 6th, 2006 01:50 PM
findfirst function and vc++ amira C# 0 September 29th, 2005 07:42 AM
findfirst help Raif Access 1 June 14th, 2004 03:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.