Kryst51
Singin' in the Hou. Rain
- Local time
- Yesterday, 23:41
- Joined
- Jun 29, 2009
- Messages
- 1,896
OK, I am new to this forum. First off I want to say, that Ihave spent two days researching this issue, both through the internet and two books I own on Access databases and do not understand the answers that I have found.
I have a form that I want to add records from a linked table to. The way I want to accomplish this is to click a button on the form, and open another form. This second form has a list box that is set to multiple extended option. I want to be able to select the records from the list box, and update the foreign key that is in the table the list box is being populated by to the primary key that is being displayed in the first form. I want it to update the field when I click a button.
I have taken certain steps that I thought might make this easier.
1. The forms and list box have been created.
2. I have added a text box to the second form that pulls in the value of the primary key of the first form, hoping that this would be eaier to refer to.
I am doing all this in hopes of automating a task, where I copy info from a database to a spreadsheet, wher I modify the data how I want it to appear, and maintain the spreadsheet throughout the month. As it is workk related, I don't know that I can share my database, but I could make a dummy one, although i am not sure I am allowed to do attachments yet.
Any help would be greatly appreciated. I have checked out other forums, and know that This probably involves some looping statements in VBA, but when I apply the codes that I have found and inserted my custom fields I cannot get it to work. The books I have do not explain it very well.
Again Thank you
Kryst
I have a form that I want to add records from a linked table to. The way I want to accomplish this is to click a button on the form, and open another form. This second form has a list box that is set to multiple extended option. I want to be able to select the records from the list box, and update the foreign key that is in the table the list box is being populated by to the primary key that is being displayed in the first form. I want it to update the field when I click a button.
I have taken certain steps that I thought might make this easier.
1. The forms and list box have been created.
2. I have added a text box to the second form that pulls in the value of the primary key of the first form, hoping that this would be eaier to refer to.
I am doing all this in hopes of automating a task, where I copy info from a database to a spreadsheet, wher I modify the data how I want it to appear, and maintain the spreadsheet throughout the month. As it is workk related, I don't know that I can share my database, but I could make a dummy one, although i am not sure I am allowed to do attachments yet.
Any help would be greatly appreciated. I have checked out other forums, and know that This probably involves some looping statements in VBA, but when I apply the codes that I have found and inserted my custom fields I cannot get it to work. The books I have do not explain it very well.
Again Thank you

Kryst