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

multipik boxes updating tables

RR
Hi,

I am having a little trouble not sure if want I want to do is possible. I
have a form that I would like to attach a multiselect list box on. The
multiselect box would list organizations responsible for a specific job that
appears in a combo box. The combo box is linked to a table with 125
different jobs, when a user selects a specific job, he or she would then
select all the organizations that would have responsibility for the task in
the list box. I want that task to be updated in a new table for each
organization that would be responsible for accomplishing it. I would be
happy to forward my current database with the form I an trying to program.

Thanks in advance.

Rob
Nov 12 '05 #1
1 1512
You will likely to have to make a function or sub that does this for you.
Example...
Include your own error trapping.

Function AppendJobOrgs(lstBox As ListBox, JobID As Variant) As Boolean
Dim rst As Recordset
Dim db As Database
Dim varItem As Variant

Set db = CurrentDB
set rst = db.OpenRecordset("tblName", dbOpenDynaset)

For Each varItem in lstBox.ItemsSelected
rst.Append
rst!JodID = JobID
rst!Org = lstBox.ItemData(varItem)
rst.Update
Next varItem

End Function

Mike Storr
www.veraccess.com
"RR" <RR@HOTMAIL.COM> wrote in message news:40**********@127.0.0.1...
Hi,

I am having a little trouble not sure if want I want to do is possible. I
have a form that I would like to attach a multiselect list box on. The
multiselect box would list organizations responsible for a specific job that appears in a combo box. The combo box is linked to a table with 125
different jobs, when a user selects a specific job, he or she would then
select all the organizations that would have responsibility for the task in the list box. I want that task to be updated in a new table for each
organization that would be responsible for accomplishing it. I would be
happy to forward my current database with the form I an trying to program.

Thanks in advance.

Rob

Nov 12 '05 #2

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

Similar topics

9
by: Dustin | last post by:
Here's what I am trying to do: (Names represent CSS classes.) I want to create a photo gallery. I want the entire gallery to be surrounded by a box named PhotoGallery. I want a fluid placement...
1
by: Aravind | last post by:
Hi folks. I have 2 tables, AccList and Book. Book has ISBN as its primary key, while AccList has AccNo as its primary key (data type = Autonumber) and ISBN as its foreign key. The entries...
0
by: drjmwebb | last post by:
I am using Access 2000/Windows 2000 on a Novel network I have a multi-user program that tracks documents and their holders. There are three primary tables tblHolders, tblDocuments and a link...
0
by: 4 | last post by:
Insert/Delete/Modify Statement Shortcuts??? Help!! I am working in C# and running an Oracle 9i server. I was just wonering if there is a shortcut way of updating my tables and not have to...
4
by: enrique | last post by:
Hi, I apologize for a newbie question, but my books/research have yielded me no examples and my time is now short. I simply want to update data from text boxes (fields). I'm not using a datagrid...
8
by: Paul | last post by:
I have an application that I am tryign to modify, I never wrote the original so need help with my modifications. Currently the app reads and writes to an Access database with one table 'pupils'...
11
by: elaina | last post by:
Hi all. I am a complete newbie to Access. I've created a set of forms with nested subforms which while lovely (Yay me), are completely non-functional (boo). There seem to be 2 problems, but I...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
9
by: Marianne160 | last post by:
Hi, I know there are various answers to this problem available on the web but none of them seem to work for me. I am using Access 2003 to make a form to look up data from a table. I have so far...
9
by: Steve67 | last post by:
Need a little assistance with a VBA code for updating tables through a form. I have a form with two text boxes and a command button. One text box is named txtNewPartNumber and the other text box is...
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
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
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
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.