473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Updating a combo box

5
I give up. I have spent hours trying to get a combo box to update when the user types in something other than what is on the list. I have tried the refresh, notin list, bribery UGH!!
The form I am using is based on a table--one of the fields is based on a combo box. In the AfterUpdate event, I entered Me. Refresh. Nothing. Tried Requery. Nothing. Tried the NotInList which got way too confusing.
I created a sample form with the source being the combo box table and created a combo box on the form based on the combo box table. In the AfterUpdate, I put in Me. refresh and it works great.
I believe the problem is that in the main form, it doesn't know what to refresh? I don't know. I just figured I had better stop short of pulling out my hair and alienating everyone around me with cries of frustration. Please don't hate me because I'm stupid.
Oct 17 '06 #1
6 3949
MMcCarthy
14,534 Expert Mod 8TB
You said you tried requery. Did you try to requery the combo box or the form?



I give up. I have spent hours trying to get a combo box to update when the user types in something other than what is on the list. I have tried the refresh, notin list, bribery UGH!!
The form I am using is based on a table--one of the fields is based on a combo box. In the AfterUpdate event, I entered Me. Refresh. Nothing. Tried Requery. Nothing. Tried the NotInList which got way too confusing.
I created a sample form with the source being the combo box table and created a combo box on the form based on the combo box table. In the AfterUpdate, I put in Me. refresh and it works great.
I believe the problem is that in the main form, it doesn't know what to refresh? I don't know. I just figured I had better stop short of pulling out my hair and alienating everyone around me with cries of frustration. Please don't hate me because I'm stupid.
Oct 17 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
Post the code you are using in the after update event of the combo box



You said you tried requery. Did you try to requery the combo box or the form?
Oct 17 '06 #3
dcyale
5
You said you tried requery. Did you try to requery the combo box or the form?
The only code I have used is Me.Refresh or Me. Requery. I put in the properties for the combo box. I created a test form based on the lookup table and a combo box based on the field in that table and Me.Refresh works great. But when I try it in my main form (which is based on a table where one of the fields is the combo box) it doesn't work. Someone told me to try using DISTINCT as the query, but I don't like the idea of having to rely on what's in the main table. It seems that this should be so simple.
Oct 18 '06 #4
MMcCarthy
14,534 Expert Mod 8TB
tey:


Me.ComboBoxNane.Requery
Oct 19 '06 #5
dcyale
5
tey:


Me.ComboBoxNane.Requery
I'v e decided to go the route on a self-query on the table. The database is going to be used by only one person who is comfortable with Access so I think it will work all right. Who knew it would be so difficult to add data to a combobox.

Thanks for the help.
Oct 19 '06 #6
NeoPa
32,556 Expert Mod 16PB
Have you got 'Limit to List' set to 'Yes' for your ComboBox?

That might cause your problem.
Oct 20 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Bobbak | last post by:
Hello All, I was wondering if it is at all possible to have a single combo box update multiple fields in a single record. For example I have created an Employee Info form, and in that form there's...
15
by: Colin | last post by:
I have a query that calculates the selling price of products on customer orders. Selling prices are calculated based on the average cost of the items when purchased. As I make new purchases, the...
5
by: J. Yuan | last post by:
Hi, I am working on a checkout/inventory system. How can I make a button that when pressed, would update the previous fields transaction number to a table (for example, -3 printers, so that...
4
by: Bonzol | last post by:
..Net 2003, 1.1, Access database. oledb connection Hey there, I had my program updating to the database with a dataset,,, doing things the easy way, binding the dataset to the text box n such,...
0
by: Cndla | last post by:
hi, I have two combo boxes in a form. Functionality is such that selecting a value from the first combo box changes the value in the second combo box. Now this works fine in a normal computer with...
5
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
0
by: CCLeasing | last post by:
Hello, I have searched google but can not find a straight forward answer to my problem. Hopefuly someone will be kind enough to offer their expertise. Please forgive if this seems a bit convoluted...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
9
by: Marianne160 | last post by:
Hi, I know there are various answers to this problem available on the web but none of them seem to work for me. I am using Access 2003 to make a form to look up data from a table. I have so far...
4
by: Light1 | last post by:
I am working in Access 2003. I have a form that pulls information from a couple of tables. When the user chooses a selection from the dropdown menu of a combo box, it is putting that information...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.