andysgirl8800
Registered User.
- Local time
- Today, 12:42
- Joined
- Mar 28, 2005
- Messages
- 166
First of all, thanks to everyone for participating in this site. It has been the most helpful by far that I've come across. That said, I am seeking assitance yet again.
I am trying to do something of a lookup function and am not sure where to start.
I have a field on my form called booktype that will already have a value in it, like "Fiction". I'd like to add a button that, when clicked, will look on a seperate table, tblBooks, find "Fiction" in the list (column 1), and insert its related data (column 2) into a text box txtCategory on my form as appended data, so that the user would see the data, like "Thriller, Romance, Childrens," etc in the text box.
So, ultimately, I want to append the data in the second column of the tblBooks related to the search word (i.e. "Fiction") to the table on which the form is built, tblBookRequest, in the txtCategory field. After the data is appended, I need to be able to edit it within the text box without it affecting the saved data on the tblBooks, hence the need to append it.
Finally, I also need the ablility to add a new book type if it is not found in the tblBooks list. So, if "Fiction" was not in the table, I'd like a pop up form to add it to the table for current and future use.
I've read many posts about DLookUp functions, NotInList edits, and append queries, but I can't seem to find something that will accomplish what I need. Any input would be greatly appreciated. Thanks in advance for your help!
I am trying to do something of a lookup function and am not sure where to start.
I have a field on my form called booktype that will already have a value in it, like "Fiction". I'd like to add a button that, when clicked, will look on a seperate table, tblBooks, find "Fiction" in the list (column 1), and insert its related data (column 2) into a text box txtCategory on my form as appended data, so that the user would see the data, like "Thriller, Romance, Childrens," etc in the text box.
So, ultimately, I want to append the data in the second column of the tblBooks related to the search word (i.e. "Fiction") to the table on which the form is built, tblBookRequest, in the txtCategory field. After the data is appended, I need to be able to edit it within the text box without it affecting the saved data on the tblBooks, hence the need to append it.
Finally, I also need the ablility to add a new book type if it is not found in the tblBooks list. So, if "Fiction" was not in the table, I'd like a pop up form to add it to the table for current and future use.
I've read many posts about DLookUp functions, NotInList edits, and append queries, but I can't seem to find something that will accomplish what I need. Any input would be greatly appreciated. Thanks in advance for your help!