473,407 Members | 2,312 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,407 software developers and data experts.

Save value of combobox before it was updated

Is possible to save to a variable in VBA the value a combobox had before it
was updated in order to use it because the update value can be retrieved
easily

Thank you

--
Message posted via http://www.accessmonster.com

Apr 3 '07 #1
3 3656
I forgot to mention that it is an unbound combobox.

Also is it possible with VBA to determine what control has changed. I have a
procedure which is triggered when a value from a combobox or txtbox changed.
I would like to be able to know in the procedure which control has been
altered

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200704/1

Apr 3 '07 #2
On Tue, 03 Apr 2007 20:49:39 GMT, greeknl via AccessMonster.com wrote:
Is possible to save to a variable in VBA the value a combobox had before it
was updated in order to use it because the update value can be retrieved
easily

Thank you
A control's previous value is the OldValue.
In the control's AfterUpdate event:

MsgBox Me![ComboName].OldValue

Remember, though, that a Combo's Value is the value of it's Bound
column, which is not necessarily what is displayed.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Apr 3 '07 #3
I have an unbound combobox.
Is there anyway to circumvent this problem

fredg wrote:
>Is possible to save to a variable in VBA the value a combobox had before it
was updated in order to use it because the update value can be retrieved
easily

Thank you

A control's previous value is the OldValue.
In the control's AfterUpdate event:

MsgBox Me![ComboName].OldValue

Remember, though, that a Combo's Value is the value of it's Bound
column, which is not necessarily what is displayed.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200704/1

Apr 4 '07 #4

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

Similar topics

0
by: Marc | last post by:
Hi all, I have an application that uses a Pmw ComboBox to display a list that is dynamic. The user has the ability to add and delete items from the list at different points in the program. ...
1
by: Giulio | last post by:
Hello, I have a continuous form with a combo box inside. From the combo box I can pick some values which, by the "after-update" event, change some other combo box values determined by a query....
1
by: Lumpierbritches | last post by:
Thank you in advance for any assistance, it is greatly appreciated. I would like to know if there's a way to update a combobox that is on a form when the table that it's linked to is updated, with...
1
by: Wavemaker | last post by:
I was wondering if there is a way to change the value of a control without triggering an event. The ComboBox control, for example, will trigger the SelectedIndexChanged event when its SelectedIndex...
0
by: mbaril68 | last post by:
I have a combobox with the Text property set to the field I want. It displays and saves correctly until I try to use a dataset to show the list. I set DataSource to the dataset with the list and...
3
by: Darin | last post by:
I have a problem I just can't figure out. I have a form with a subform, and the recordsource of the subform has criteria based on some unbound fields in the parent form so that data in the parent...
4
gcoaster
by: gcoaster | last post by:
Hello! I have a dilemma I have a form that is bound to a table = tblCALLDETAILS I have a field in the table that is on the the form called = email, that is a textbox txtClientEmail ...
4
by: EManning | last post by:
Using A2003 w/ tables linked to SQL Server. All users have their own copy of the mdb. I have a combobox whose rowsource is a query. This query is based on a table and has a field in it that...
2
by: ashukite | last post by:
I have an invoice form bind to a bindingsource and bindingnavigator. I use the bindingnavigator to add and save records. But I can's save data from an item combobox and total text box. The item...
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: 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
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.