473,698 Members | 2,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Find record using Combo box

May any one can teach me the easy way to create a combo box in a form
to find record.
Nov 13 '05 #1
1 2363
Rog
The easy way is to let the wizard do it for you. Select the "find a
record on my form based on the value I selected" option.

If you want to do it yourself, you need to enter code in the
afterupdate event of your combo. Example:

Me.RecordsetClo ne.FindFirst "[EmployeeName] = " & Chr$(34) &
Me!cboNames & Chr$(34)
Me.Bookmark = Me.RecordsetClo ne.Bookmark
Me!cboNames = ""
Leave out the Chr$(34)s if it's a numerical value.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1313
by: Josh Armstrong | last post by:
I have a dropbox (cboReasons) in a form, when the user selects a reason from the dropbox the form needs to look in another table (lvsn_DefaultSettings) and see if there is a entry for that reason DLookup("", "lvsn_DefaultValues", Me.cboReasons). If it finds one it needs to update some check boxes on the form. for expample User selects Reason = "Sales" found record in lvsn_DefaultValues for "Sales"
6
2769
by: Megan | last post by:
I'm using an unbound combo box on a form as a record selector. I'm using the combo box to choose certain types of music, i.e. Alternative, Pop, Rock, etc…and then run a report based on the selection. My combo box, cboMuisicType, has a simple query, qryGetType, as a row source. This query retrieves data from my table, tblMusicTypes. This table has 2 fields: MusicID and MusicDesc. MusicID is the primary key and an autonumber. MusicDesc is...
5
5052
by: ddecoste | last post by:
I am trying to create a form to make it easier to modify a record without having to page through all the records. I have started the form with 3 cascading combo boxes. ie #1 asks for division , #2 is populated with just the customers in the division specified by #1 and then #3 is just the Parts for the customer in #2. This part works great. I now need to set the code in the after update of the #3 combo box to pull up the record that...
8
5491
by: jquest | last post by:
Hi Again; I have had help from this group before and want to thank everyone, especially PCDatasheet. My database includes a field called HomePhone, it uses the (xxx)xxx-xxx format to include area code. When a customer calls, I currently use Ctrl F with the HomePhone field highlighted. Then I enter the last 4 digits and use the find next option. This is cumbersome, so I have tried several methods (including a macro) using comand...
1
1441
by: kaleshire | last post by:
I have a form that has two combo boxes which are used to find a record for the subform. An AfterUpdate event on the second combo box runs ... Me.vtrack.Requery this part works perfectly, and when no record is found, of course nothing populates the subform. When nothing populates and I type in information to the subform and Save/Close the form, no record is created in the subforms table. I'm trying to find a way to have the subform start a...
0
1653
by: uthooker | last post by:
I have an Access form with some combo boxes in the Form Header that are enabled/disabled using conditional formatting based on the setting in a checkbox also in the Header (Combo box = Enabled by default; when Checkbox = False, Combo Box = Disabled.). When I open the form, the combo boxes are behaving as expected, and when I change records (using the standard arrow buttons at the bottom of the form) to a record with a different setting...
1
1420
by: Karthiga1984 | last post by:
Hi Table Structure company name Phone No Products Example Company Name Phone No Products
2
1765
by: nospam | last post by:
-------------------------------------------------------------------------------- I have a subform with the related IDs for each customer on the customer main form. I have a button on the continuous subform, which will make the main customer record go to that sub related record's customer record. (follow me?) Problem is that once I am at the related record, if I push the button
1
6617
by: gdixon | last post by:
Greetings To All! I am using a Access 2003 and my programing skills are of the cut and paste variety. This means begining programming skills and on a good day perhaps middle of the road intermediate. I have used some of the combo box tutorials to get me started but I have a question, how do I save a selection choice from a forms combo box into a second table where the form is recording information? On a form called frmIncidents I have a...
3
1627
by: zufie | last post by:
How can I get the Value that I select using my Combo Box to be UNIQUE (to save to ONE record)to the respective Record that I am viewing on my Form? At present, when I select a Value from the Combo Box this Value displays on EACH of the 7441 records that I can view using my Form. I know its some small detail on my Combo Box properties that I am overlooking?
0
8678
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9166
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2333
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.