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

how Combo Box can update data from a table

I am planning a single Form by which user may enter data into several
tables.

I put Combo Box which receive data from table (lets say `T_Customer`).
At the same time, I put T_Customer subform into same Form too. I put
it, because i want user to enter new Customer data to the T_Table if he
can not find it in Combo Box.

Problem is that Combo Box can not show recently entered Customers
automatically. Is there anyway to solve this problem ?

Nov 1 '06 #1
2 2689
Assume that your main form is named MF and the combo box is
cmbT_Customer.

Then in the code for the after_insert event of the subform you would
have:
forms!MF!cmbT_Customer.refresh.

This will cause the query behind the combo box to excute and the new
name will be in there.
If there is an option to change the name in the subform, then place
the same line in the the after_update event of the subform.

Good luck
Ira Solomon
On 1 Nov 2006 07:12:57 -0800, sa*************@yahoo.com wrote:
>I am planning a single Form by which user may enter data into several
tables.

I put Combo Box which receive data from table (lets say `T_Customer`).
At the same time, I put T_Customer subform into same Form too. I put
it, because i want user to enter new Customer data to the T_Table if he
can not find it in Combo Box.

Problem is that Combo Box can not show recently entered Customers
automatically. Is there anyway to solve this problem ?
Nov 1 '06 #2
I am so appreceated for your help. it is working !!!!

Ira Solomon wrote:
Assume that your main form is named MF and the combo box is
cmbT_Customer.

Then in the code for the after_insert event of the subform you would
have:
forms!MF!cmbT_Customer.refresh.

This will cause the query behind the combo box to excute and the new
name will be in there.
If there is an option to change the name in the subform, then place
the same line in the the after_update event of the subform.

Good luck
Ira Solomon
On 1 Nov 2006 07:12:57 -0800, sa*************@yahoo.com wrote:
I am planning a single Form by which user may enter data into several
tables.

I put Combo Box which receive data from table (lets say `T_Customer`).
At the same time, I put T_Customer subform into same Form too. I put
it, because i want user to enter new Customer data to the T_Table if he
can not find it in Combo Box.

Problem is that Combo Box can not show recently entered Customers
automatically. Is there anyway to solve this problem ?
Nov 1 '06 #3

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

Similar topics

5
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
3
by: mal | last post by:
Sorry for repost - system added to another subject for some reason Have tried numerous ideas from the group to solve this one. It is such a simple example that it should be straightforward ! I...
11
by: my-wings | last post by:
I think I've painted myself into a corner, and I'm hoping someone can help me out. I have a table of books (tblBooks), which includes a field (strPubName) for Publisher Name and another field...
1
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard....
0
by: northshore | last post by:
Hello, I am creating a windows application database. I have a primary table 'Individuals' and a lookup table 'Prefixes.' In the Individuals table, I have a column 'PrefixID' that references...
4
by: Miguel | last post by:
I have an order entry database with two forms. One is for new orders the other is to update orders. The forms are identical except that one is strictly order entry. On both forms are three sets of...
2
by: Ausclad | last post by:
How Would you implement this? I have an existing Access application that needs to be converted to .net I am restricted to use the existing database design. One of the areas is a timesheet...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
6
by: aBheE | last post by:
i am trying to implement an application in order to keep rercords of the stationary of a company. i have a combo box named ComboP_Name In FormProducts form,which is getting the values from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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
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.