skidude2000
Registered User.
- Local time
- Today, 14:55
- Joined
- Jun 8, 2012
- Messages
- 10
Hi all,
I am new to this forum, and I think I'm posting in the right place, but I'm not sure. If I'm not, apologies.
Anyway, I am coding a database that deals with software and computer inventory. My current issue stems from a form designed to take info of newly imaged computers. Here's what I have:
Form: frmNewComp
Fields in question:
Listbox: lstGroup
Fields: txtGroup
txtCreate
txtDelete
txtGroupNotes
Within the lstGroup listbox, I have columns GroupAcctID, GroupName, AcctCreate, AcctDelte, and Comments.
So here's the deal: What I want this section of the form to do is record what group accounts are being put onto the computer as it is imaged. The source of the group accounts is another table called tblGroupAcct; this is the table that gives the listbox its information.
The listbox is a multiselect, since it may be the case that more than one group account is put onto a single pc. Now, I am farily certain I have the code for saving the selection. What I want is this: as a group from lstGroup is selected, its information is displayed below the listbox in txtGroup, txtCreate, txtDelete, and txtGroupNotes. For the onClick event of the listbox, I want VBA to detect the list row last selected, get that row's information, and distribute it to the textboxes. Seems easy enough, but I have no idea how to do this :banghead:.
Please help!
I am new to this forum, and I think I'm posting in the right place, but I'm not sure. If I'm not, apologies.
Anyway, I am coding a database that deals with software and computer inventory. My current issue stems from a form designed to take info of newly imaged computers. Here's what I have:
Form: frmNewComp
Fields in question:
Listbox: lstGroup
Fields: txtGroup
txtCreate
txtDelete
txtGroupNotes
Within the lstGroup listbox, I have columns GroupAcctID, GroupName, AcctCreate, AcctDelte, and Comments.
So here's the deal: What I want this section of the form to do is record what group accounts are being put onto the computer as it is imaged. The source of the group accounts is another table called tblGroupAcct; this is the table that gives the listbox its information.
The listbox is a multiselect, since it may be the case that more than one group account is put onto a single pc. Now, I am farily certain I have the code for saving the selection. What I want is this: as a group from lstGroup is selected, its information is displayed below the listbox in txtGroup, txtCreate, txtDelete, and txtGroupNotes. For the onClick event of the listbox, I want VBA to detect the list row last selected, get that row's information, and distribute it to the textboxes. Seems easy enough, but I have no idea how to do this :banghead:.
Please help!