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

Home Posts Topics Members FAQ

Data does not update to table

10 New Member
I have a form with a combo box. I also have a expression in a text field to paste the data from the combo box into the specific field. This works, but the data does not update/refresh to the table. How to fix this issue.
Apr 8 '10 #1
5 1651
missinglinq
3,532 Recognized Expert Specialist
My guess would be that you have this expression in the Control Source for the textbox. You need to move the code from there, make the Control Source the field in the underlying table where you want to store this data, then place your expression in the Combobox AfterUpdate event. Something like

Me.TextBoxName = Me.ComboboxName.Column(x)

where X is the number for the appropriate field in the Combobox. Remember that the fields, running left-to-right in the dropdown, start at zero.

Welcome to Bytes!

Linq ;0)>
Apr 8 '10 #2
cheweedog
10 New Member
Thank this did work, but how would this work with multiple fields to auto populate the table? I entered
Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo26_AfterUpdate()
  2.   Me.UPC_Code = Me.Combo26.Column(2)
  3. End Sub
Would I enter another Me statement to this code, like Me.txtboxname=Me.comboboxname.column(x)
Apr 8 '10 #3
missinglinq
3,532 Recognized Expert Specialist
Exactly!

Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo26_AfterUpdate()
  2.    Me.UPC_Code = Me.Combo26.Column(2)
  3.    Me.AnotherField = Me.Combo26.Column(3)
  4.    Me.YetAnotherField = Me.Combo26.Column(4)
  5. End Sub
Apr 8 '10 #4
cheweedog
10 New Member
Thank you very much. I did try this method and it works great.
Apr 8 '10 #5
missinglinq
3,532 Recognized Expert Specialist
Glad we could help!

Linq ;0)>
Apr 9 '10 #6

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

Similar topics

4
by: francis70 | last post by:
Hi, I have these 2 problem? Is there a way in Oracle to read UNCOMMITED data. i.e. in Oracle the normal behaviour is that a user's updates to a table are visible to other users ONLY when the...
0
by: Redd | last post by:
The following is a technical report on a data modeling project that was recently assigned to me by my professor. I post it so that anyone else who is studying databases and data modeling can have...
3
by: Chris | last post by:
Could someone please provide me an effective means of exporting data from a data set (or data grid) to Excel?
9
by: Vorpal | last post by:
Here is a small sample of data from a table of about 500 rows (Using MSSqlserver 2000) EntryTime Speed Gross Net ------------------ ----- ----- 21:09:13.310 0 0 0 21:09:19.370 9000 ...
3
by: Lloyd Sheen | last post by:
I am having trouble with an app that does the following: 1. Query SQL Server and return one row 2. Bind the columns to text boxes 3. User updates info 4. User clicks update button ...
2
by: Robert Smith jr. | last post by:
Hello, Please pardon my newbie question ... I am building an ASP.NET page that displays a recordset with a Delete statement enabled (this all works fine). I want to Insert the current row...
10
by: Trevor | last post by:
Hey, I am trying to do this tutorial on the microsoft site : http://msdn.microsoft.com/library/default.asp? url=/library/en-us/dndotnet/html/usingadonet.asp I can get everything to work up to...
9
by: Brad | last post by:
I have written some code to manipulate data/records in a MASTER (order header) and DETAIL (order details) tables. What I have written is too extensive to post but essentially trying to: 1....
4
MitchR
by: MitchR | last post by:
Good Morning; I have an issue that I need to guidance to resolve. I have a table called return_tbl with about 25k records. I have 23 Fields in this table. I am looking to update 3 of these 23...
1
by: steven_nospam at Yahoo! Canada | last post by:
I am a UNIX person (not much experience with MS Access) who during a recent upgrade on an IBM RS/6000 server had to convert our system due to an upgrade to a new software revision. The old...
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
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...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
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...
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...
1
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.