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

can i have two bound column in combo box

3
I need to update two fields in the database table using one selection of combo box.
For e.g.
When user selects "YES" in a combo box, i need to populate two table fields Quesvalue=100 and Quesscroe=200 ( I can use these two files as hidden field in combo box)

Any suggestions?

Thanks,
Girjer
Aug 9 '07 #1
3 5702
Rabbit
12,516 Expert Mod 8TB
I need to update two fields in the database table using one selection of combo box.
For e.g.
When user selects "YES" in a combo box, i need to populate two table fields Quesvalue=100 and Quesscroe=200 ( I can use these two files as hidden field in combo box)

Any suggestions?

Thanks,
Girjer
You can't bind two fields to a combo box but you can use the after update event to populate more than one field.
Aug 9 '07 #2
girjer
3
You can't bind two fields to a combo box but you can use the after update event to populate more than one field.
Please let me know a simple query to write two update statements within one action piece of code either in Access or VB code to use in after update event.

for e.g.
I want to two update statements to be run on a single click of button
i.e.
1. update <table_name1> set field1=100 where <condition>
2. update <table_name2> set field1=200 where <condition>
Aug 10 '07 #3
Rabbit
12,516 Expert Mod 8TB
Please let me know a simple query to write two update statements within one action piece of code either in Access or VB code to use in after update event.

for e.g.
I want to two update statements to be run on a single click of button
i.e.
1. update <table_name1> set field1=100 where <condition>
2. update <table_name2> set field1=200 where <condition>
It'll look something like this:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.RunSQL "UPDATE ..."
  2. DoCmd.RunSQL "UPDATE ..."
  3.  
Aug 10 '07 #4

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

Similar topics

0
by: Paul Edwards | last post by:
I am writing in c# with Visual Studio 2003. I am creating a form that shows one record from a Dataset that is populated with only one record from SQL Server 2000. I am using bound controls, both...
2
by: D | last post by:
Book inventory. Access 2K. I'm trying to let a user choose a book title from one combo box, then a book number for that book title from another combo box. I can filter the book number combo with...
2
by: Daniel Tan | last post by:
Hi, how can i obtain the value of combobox multiple bound column data ? Eg, if i select combo box, it has more than one field, name and age and id listed. Pls advise, thanks. Regards, Daniel
1
by: rob | last post by:
I built a combo box that contains names of people. A user can chooses a person from the combo box, the next couple of the text boxes will show the corresponding address of that person. I used...
6
by: DFS | last post by:
I swear that sometimes things behave differently from one day to the next. Access 2003. Example: I have 4 radio buttons that set the rowsource of a combobox depending on which option you choose....
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....
1
by: Bill | last post by:
Problem: Combo box data disappears from view when a requery is done See "Background" below for details on tables, forms & controls On a form, I want to use the setting of bound combo box C1...
1
by: _JB_ | last post by:
Hi, I'm having problems changing the selected entry in a combo box when it's Row Source Type is Table/Query. I can do it easily when it's of Value List type by setting the Value property....
1
by: asiankow | last post by:
Hello, I'm building a form that uses a query based combo box to populate a separate text box on the same form. I've input the expression in the control box of the other text block as...
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?
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
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
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,...

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.