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

Update combobox from table.

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 the form still open?

I have multiple comboboxes linked back to other tables and as a user
double-clicks on the combobox, a form for updating that table is opened. The
problem I have is that the updated listing isn't available in the combobox
selection until the form with the combobox is closed and reopened. (a pain)

Michael
Nov 13 '05 #1
1 1564
If you're returning the focus to the form, put this code in the form's
activate event. Otherwise you'll need to add a "Requery" button or
something.

Private Sub Form_Activate()

Me.cboTheComboBox.Requery

End Sub

Lumpierbritches wrote:
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 the form still open?

I have multiple comboboxes linked back to other tables and as a user
double-clicks on the combobox, a form for updating that table is opened. The
problem I have is that the updated listing isn't available in the combobox
selection until the form with the combobox is closed and reopened. (a pain)

Michael


--
--------------------------------------
Chris Moore
cdmwebs [at] no_spam_hotmail [dot] com
http://cdmwebs.com
Nov 13 '05 #2

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

Similar topics

2
by: A. Chiou | last post by:
Hi: I have a combobox (in form 1) whose items are populated from a table. In form 2 there is a data entry for the same table. How do I reflect the changes to the combobox in form 1 as soon as...
4
by: Rob Kroese | last post by:
I've got a form with a datagrid that displays a list of items, along with several textboxes, comboboxes, etc., that display the details for the selected item. The columns in the datagrid and the...
3
by: Larry Woods | last post by:
I have a datagrid that is carrying all fields of a record...except one. Now I want to update the underlying database via a dataadapter. The update is working but the field that is "left out" is...
3
by: dbuchanan | last post by:
Hello, (Windows forms - SQL Server) I fill my datagrid with a stored procedure that includes relationships to lookup tables so that users can see the values of the combobox selections rather...
1
by: fiaolle | last post by:
Hi I have tried to update my combobox with no luck. I add records to the table, the combobox has as Datasource, but I don't know how to update the combobox. I have tried updata the oledbadapter...
1
by: Sasa | last post by:
Hello, i have a problem with a query that update a table with the combo value and i have n combo. Ok, but when i don't insert any value in one combobox and run the query, all the value are insert...
5
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
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 ...
1
by: Rosie | last post by:
I have a main form with header info w/ 'tHeader' as the control source. I have a subform with 'tDetail' as a control source. They're strung together by a field named MA_ID. This works...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
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.