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

Form only saves last entry selected from drop-down combo box

I created a form that is linked to a table with a concatenated field. The concatenated field is what is linked to a drop-down combo box on the form where the user can select the item he/she is to update. Once the user selects it, they can type in a text box the # of units for the item selected. So....I click and item, let's say 8399 and then add 2 units, click save. Now, I select from the drop down menu 8400 and add 4 units, click save. When i run the report, my form only saved my last entry (8400 with 4 units). Why????
Feb 25 '13 #1
6 1391
you are not saving the value in database correctly. is it possible that you show me your code??
Feb 25 '13 #2
zmbd
5,501 Expert Mod 4TB
I created a form that is linked to a table with a concatenated field.
More than likely it is because you are directly editing the underlying record set in a bound control.
If this is your very first database, I suggest that you work thru the following:
> A Tutorial for Access
> Database Normalization and Table Structures.
I also highly advise that you take a few momements, scroll to the bottom of this page, click on the VBA Insights Sitemap link. A very large number of your future questions will have some answer sitting there and will save you hours of searching.
Feb 26 '13 #3
Where do I find the code?

This is my first database.
Mar 5 '13 #4
zmbd
5,501 Expert Mod 4TB
@nycdotnewbie
Hence why you should go to the tutorial site I linked you to and then read thru the second link.

You might also want to work thru the Access material:
Download Office 2010 training


As for the "Code" that aamirit is asking for... lets' skip that for now until you get the basics down.

You'll also want to be reading:
> Posting Guidelines
> How to ask good questions
> FAQ
> Before Posting (VBA or SQL) Code
Mar 5 '13 #5
I appreciate your suggestions but I don't have time for that. I just need to get that form working as soon as possible.
Mar 5 '13 #6
zmbd
5,501 Expert Mod 4TB
These are not suggestions; we cannot teach you the basics which are REQUIRED before you could even begin to understand what we would even try to tell you...

No disrespect intended (and I really do mean this in kindest way possible):
You can't even find the code behind the form, if any, and it sounds more like you used the form wizard which in V2010 seems to like the Macro script. Do you even know the difference between the two (VBA and Macro)?

Worse yet, because you do not have the basics down, your question is not really one that we can provide any real guidance for because you have not been able to relate the underlying structure of the form; something that you more than likely do not realize because you do not have the fundamentals.

Please understand we do truly want to help you; however, much like in a mechanics shop, you have to "bring your own tools" so to speak and understand what a spanner is versus a hammer and how to employ each of them for the task at hand.

I must now insist that you read the posting guidelines and the FAQ that were linked to in my last post. Please understand that you will be expected to abide by the standards given within for all further posts.

After that... you need to work thru the tutorials so that you can understand what we are telling you and more importantly, so that you can ask a proper question with the pertinent details.
Mar 5 '13 #7

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

Similar topics

2
by: PC | last post by:
Hi, I have used the DLast("!","")function to find and display the last entry in a table. How would I go about displaying the last record in a table that is not Null? Thanks in advance ...pc
5
by: John Veldthuis | last post by:
My code works perfectly 100% when adding items to my ArrayList and updating the listbox. Works perfectly when deleting an item in the ArrayList when it is not the last entry but if it is the last...
1
by: flamethrower01 | last post by:
Hi, I have a form (with 4 subforms) which is filtered by 3 combo boxes. Upon loading the form, the form populates fine. After the first combo box, the form works fine. After the second one...
1
by: planetthoughtful | last post by:
Hi All, I'm very new to VB.Net, and I've recently downloaded VB 2005 Express. I've managed to connect a dataset to my installation of SQLExpress2005 and I have a form on which I have fields that...
1
by: NumberCruncher | last post by:
Hi All, I am struggling with setting up my first system of tables, forms,and reports, and could use your help! I am setting up a database to keep track of the production of a produced item. The...
2
by: Certys | last post by:
Hello, I have a form where I only allow new records to be added. I enable this by setting the form property "Data Entry" to Yes. I want to access other records in the same table- to autofill...
4
benchpolo
by: benchpolo | last post by:
I have a dropdown combo "TaxYear" with 2 fields Autonumber, Year. When data are entered in form the value that displays in the dropdown combo are Year, but when i assign the me.year.value to a...
2
by: ganesandeiav | last post by:
Dear sir how to retrieve a data that has been selected using combo box using jsp
5
by: Wernerh | last post by:
Hi, I have created a log in a listbox to show users everytime someone has logged on. Is there a form load function that will scroll down the listbox to the last entry each time the form is loaded?? ...
1
by: Fuzz13 | last post by:
I have 2 fields that will be inserted into my database ip address and datetime. Each time they are entered they are assigned a ScanID primary key so the value should increment with each entry. How do...
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
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
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.