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

update table from combo box

1
I am currently trying to create an application which will help me in my work. To do this I need to update a field called "Installations" in a table with the same value for all records. The value however is from a list of about 1300 military installations so typing in the value in an update query is not optimum.

I am able to get a combo box in a form to bring up the list and to get a parameter query to come up (after selecting the appropriate item in the list) which has the value in it but don't know how to get the table to update. I'm wondering if an AfterUpdate action is needed as a combo box event rather than the query. Not really sure here...it's been many years since I've taken a VB programming course and I really don't use it much..my work is mostly in Access but without much programming needed. Any help appreciated.
Betty
Mar 26 '07 #1
1 4734
developing
110 100+
if everythings in the same table then oyu can use the bookmark property....a relaly quick way is to put the following in the combo box's after update event

Expand|Select|Wrap|Line Numbers
  1.  Me.RecordsetClone.FindFirst "[respective field in the table] = " & Me!cboComboBox]
  2.         Me.Bookmark = Me.RecordsetClone.Bookmark

ps: depending on the field type of the column, you might have to use different formatting where the following is concerned:
"[respective field in the table] = " & Me!cboComboBox]
Mar 26 '07 #2

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

Similar topics

3
by: dixie | last post by:
I have a form full of subforms which bring summary information onto the form from about 12 different tables. I am trying to get all of that summary information (mainly numbers) into 1 large table...
1
by: Jimmy Tran | last post by:
Hi everyone, I have a form consisting of a combo box and two listboxes, they get their control source from a query. the whole form suppose to update a table. when i run the form, i pick an item...
1
by: Dreamerw7 | last post by:
Hi, I know this is probably a dumb question, but here goes: I have 3 tables: REGION REG_ID REGION
6
by: eclypz | last post by:
Whe i use a combobox, and i want it to update it's value i use the code ME.cbxname.Requery How can i do that to update the value of a textbox? i have already try to use the same expression,...
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...
2
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
28
by: jverri01 | last post by:
First, I am relatively new to working with variables. Most of my experience has been with interface design. i am using ACCESS ver. 2003, running in Windows XP. Second, I spent an hour searching...
4
by: Swinky | last post by:
I am trying to make a combo box dependent on a text box. I cannot get the combo box to pull the related data from the text box. I have been all over this user group & have tried several versions...
4
by: injanib via AccessMonster.com | last post by:
I have a combo box called "Recipient" who's row source is a table called "Main" with three columns. The three columns are "Name", "Floor", "Location". Following the combo box are two fields called...
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: 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
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
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
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.