473,397 Members | 1,985 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,397 software developers and data experts.

How to save information from multiple combo boxes at once?

283 100+
Hi all,

I have asked this question a couple of times but I keep getting no answer so I thought I would give it one more go.

I have 3 combo boxes on a form. Each of these combo boxes pulls information from a table on the back end, but the list is not complete. What I want to do is use the NotInList function so that I can update the list when a new value is introduced.

But here is the complicated part. I know how to use the NotInList function for each box individually but I want to expand on this where I can tell it to save all of the information at once instead of one at a time. Reason being is because on the back end when it saves to the table it will save all the information in one row and not a new row each time.

I dont know if this can be done or not but so far im thinking not.

Appreciate any help on the matter. Thanks

Slenish
Using: Access 2003
Apr 2 '10 #1
6 2264
patjones
931 Expert 512MB
Hi -

Are you connecting to the back end using ADO or with linked tables? And I assume each box is pulling it's list from the same table...just different columns, correct?

Pat
Apr 2 '10 #2
slenish
283 100+
Hi Pat

I am connecting to the back end with linked tables. Also yes each box is pulling from one table just different columns. Also I have it so a query runs in the background to help pull the information in to each box. Based off of the first box. So if you type in an ID number in the first box the rest of the boxes will pull from the list based on that ID number.

Just cant figure out how to get them to save if the information is not in the list.

Appreciate the help :)
Apr 2 '10 #3
slenish
283 100+
Hi Pat or who ever else may be able to help. I found a short paragraph on microsofts site that describes exactly what I want to do. Its mostly the part at the end where it talks about making a dynamic combo box that will prompt users to enter in all the information before they can save. How would I do that?

"Note The above example adds an item to an unbound combo box. When you add an item to a bound combo box, you add a value to a field in the underlying data source. In most cases you can't simply add one field in a new record — depending on the structure of data in the table, you probably will need to add one or more fields to fulfill data requirements. For instance, a new record must include values for any fields comprising the primary key. If you need to add items to a bound combo box dynamically, you must prompt the user to enter data for all required fields, save the new record, and then requery the combo box to display the new value."
Apr 2 '10 #4
patjones
931 Expert 512MB
The problem here is that Access won't let you leave the first box unless you pick something in the list. However if you set the "Limit to List" property for the box (and actually all of the boxes) to "No", it will let you leave the box with the value you typed into it.

So I think it is possible for you to tab through several boxes, typing a new value in each one, and then saving the record after exiting the last box (prompting the user if you wish). Let me know what you think.

Pat
Apr 3 '10 #5
patjones
931 Expert 512MB
I should say that I tried this with unbound combo boxes (control source left blank, row source set to a column in the table). In my opinion, this is a flexible way of doing it.

When I tried it with bound controls, it worked fine as well, but you have to be careful about editing an existing record. If you make a change and tab out of the box, that change is immediate. I found that when I hit the "New Record" button, both of my boxes cleared and allowed entry of new values (even leaving one box blank if I wanted) resulting in a new record in the underlying table.

Pat
Apr 3 '10 #6
slenish
283 100+
Thanks Pat,

For all the help. I will have to play around with that and see if I can get it to work right :)

The other option im thinking about is maybe just having it where if the user types in a number that is not in the list, I could have a sub form pop up that lets them just type in all of the information and then saves it on the back end up dating the table list. Then they could continue on. I'm going to test your idea first. I'll let you know what I find out

Thanks again
Apr 3 '10 #7

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

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
3
by: vgrssrtrs | last post by:
<html> <head> <script language="JavaScript"> <!-- /* *** Multiple dynamic combo boxes *** by Mirko Elviro, 9 Mar 2005 *** ***Please do not remove this comment
1
by: L Mehl | last post by:
On my cmdSaveRecord, I check a couple of fields to confirm that an entry has been made before allowing the Save. I decided to - not put validation rules in table structure, and - validate on...
1
by: rob | last post by:
I built a combo box that contains names of people. A user can chooses a person from the combo box, the next couple of the text boxes will show the corresponding address of that person. I used...
2
by: visionstate | last post by:
Hi there, I am working on a form that uses 3 text boxes and 3 combo boxes. When any data is entered into any of these, I click a command button and this requeries a sub query in the form and...
1
by: Shawn Yates | last post by:
It has been a while since I have done anything on MS Access and I seem to be a bit rusty. I hope someone could help me solve my issue. I have a form that has multiple combo boxes on it. Each box...
2
by: jw01 | last post by:
I have a form in which there is one combo box and three text boxes: Combo Box: -> Item A -> Item B -> Item C TextBox1: TextBox2: ...
1
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...
4
by: SKelso | last post by:
I created a database in Access 2003 that contains an unbound search form with several combo boxes. Each combo box is populated with entries from the appropriate table. I want to allow the user to...
3
by: pipeme | last post by:
Hi I am using Access 2003 and I have a form with 120 textboxes in a grid layout. Depending on a selection made in a combo box, I want to change the visibility of certain textboxes in the grid. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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...

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.