473,472 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Combo box as lookup

hi,
I am using a combo box to search and return a specific recordset.

The function works fine when I just designed it using the wizard. I
type the first few letters of a client's name, and the autofill fills
in the rest and I can enter to see the given recordset.

Whenever I close my database and reenter it, this function no longer
works. I type the name, but no autofill. Of course, I can still use
the combo box by scrolling through the records and selecting, but I
know it should and can work better than that.

Anybody know what I am doing wrong?

TIA - Eskil
Nov 13 '05 #1
5 1592
does it work if you first click the 'downarrow' of the box and then type a
name ? you might have no selection in the box the first time. on opening the
form you might need a comboboxname = "startvalue" line.

also try if comboboxname.dropdown works in the on_enter event.

--
Dutchy
Eskil <es********@hotmail.com> schreef in berichtnieuws
3d**************************@posting.google.com...
hi,
I am using a combo box to search and return a specific recordset.

The function works fine when I just designed it using the wizard. I
type the first few letters of a client's name, and the autofill fills
in the rest and I can enter to see the given recordset.

Whenever I close my database and reenter it, this function no longer
works. I type the name, but no autofill. Of course, I can still use
the combo box by scrolling through the records and selecting, but I
know it should and can work better than that.

Anybody know what I am doing wrong?

TIA - Eskil

Nov 13 '05 #2


It does not work even when clicking the down-arrow.

You are right that I don't have any selection displayed in the combo box
when I open the form.

I don't understand what you mean by a startvalue line.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
You might check to see that the AutoExpand property of the Combo is set to
Yes. It is, normally, set to Yes by default, and that is consistent with
your first use. I don't have a clue what would be resetting it unless
there's VBA code that does so. You might search your code for ".AutoExpand"
if you can stretch your imagination far enough to think that's the problem.

Larry Linson
Microsoft Access MVP

"Eskil Krogh" <es********@hotmail.com> wrote in message
news:41**********************@news.newsgroups.ws.. .


It does not work even when clicking the down-arrow.

You are right that I don't have any selection displayed in the combo box
when I open the form.

I don't understand what you mean by a startvalue line.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #4
in onopenform you may type a line like

me.comboboxname = "myfirstvalue"

and if it has to be a a value that is present in the combolist check that
"myfirstvalue" is one.
after opening the form there is now a (default) value displayed in the
combobox and that might do the trick.

you also might try me.comboboxname.requery which will rebuilt the list of
the combobox.

so far I have no more suggestions.

--
Dutchy
Eskil Krogh <es********@hotmail.com> schreef in berichtnieuws
41**********************@news.newsgroups.ws...


It does not work even when clicking the down-arrow.

You are right that I don't have any selection displayed in the combo box
when I open the form.

I don't understand what you mean by a startvalue line.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #5

Hi,
Thanks for your input. As it turned out, my db was set to be SQL
compatible .When unchecking this option my combo auto lookup worked just
fine.

Are you planning to include this functionality also in SQL compatible
databases?

eskil
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #6

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

Similar topics

3
by: Steve | last post by:
C# I have some combo boxes, full of lookup descriptions. When I retrieve a dataset for my record, the values that need binding to the combos are the actual record IDs that relate to these...
5
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
1
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard....
10
by: Richard | last post by:
I have created a form which sets up a dataview. The form views one record at a time using a currencymanager. This works fine. All my text boxes bind. However I have a combo box which gets its...
1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
0
by: northshore | last post by:
Hello, I am creating a windows application database. I have a primary table 'Individuals' and a lookup table 'Prefixes.' In the Individuals table, I have a column 'PrefixID' that references...
1
by: andy | last post by:
I have three things, 1. a form with a combo box on it. 2. A lookup table with 2 fields, RMName and RMmrm. 3. A table with site information including an RM field and an MRM field. The combo box...
1
by: Nestor01 | last post by:
I use a lookup table which contacts 2 fields (item#, name) When a customer places an order, the order form contains a drop down to select the item by name (from the lookup table). The detail is...
3
by: ilikebirds | last post by:
I am looking for a way to have one combo lookup drop down to autopopulate with multiple items based off another combo lookup. I've tried Me!rc1 = DLookup("", "", "Reject_Reason_1='" &...
4
by: Karl | last post by:
Using A2000 with 2 tables Table 1 is a reference table with 2 fields Table 2 has 2 fields and 2 combo boxes to lookup date in table 1 Combo1 binds to col 1 in table 1, this works OK Combo 2...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.