Question Quick Vendor

Teady91

Registered User.
Local time
Tomorrow, 03:46
Joined
Jul 6, 2010
Messages
30
I am working on a form called frmPurchaseBase for entering incoming invoice data.
I have a field called VendorID which is linked to a table called tblVendorInfo where all the details such as the vendor name, account details etc.
VendorID is controlled by a combo box allowing the user to select from a list of vendors names. I also have the form frmCreditorContacts for entering new Vendors. I have set this as the list edit form for the VendorID combo Box.

The problem is that this form is also used for entering information on credit card purchases and quite often a vendor is only used once and many vendors may need to be added. Also, for this type of transaction only the vendor name is needed. It becomes time consuming and inefficient using the list edit form.

Had i designed the system to begin with i would have had separate tables BUT as it stands i have been tasked with fixing someone else's design.

I thought of maybe having an unbound text box with a button which runs an append query adding a new vendor in the VendorInfo. This works but how would i then get the same button to add that VendorID (just created with the append query) to the current purchase record?

It is quite possible that i am going about this the wrong way so if any one has another design suggestion that would be much appreciated.

Cheers,

Taison
 
I get the impression that I’ve read this question before, if that’s the case, then I’m a little upset because I have just wasted 5 minutes of my time reading a question for a second time unnecessarily.

My time could have been much more productive in answering someone else’s question.
If you have reposted a question, I don’t have a problem with this, but please indicate that it’s reposted right at the beginning so that you don’t waste my time.
 
I'm sorry that you feel that way, but i assure you that i have not re posted this question... and i hope that it hasn't been asked before because that would mean that i am completely incompetent at using a search engine it also means that i have wasted 15 minutes of my time asking a question that has already been asked...

I will endeavor to research my questions more thoroughly from now on... in the mean time (if you have time) If you by chance know where you have seen this question asked before could you please post a link?

Regards,
Taison
 
I have found quite a simple solution to my problem.
using a buttons on click event procedure, I ran the append query to get the new vendor name into the VendorInfoBase table. Then in the same sub i re queried the the VendorID Combo box and used the DMax function to make the value equal to the vendor with the highest ID, i.e the vendor i just added using the append query.

If anyone else is reading this thread and wants more detail on how i did this let me know.

Cheers,
Taison
 

Users who are viewing this thread

Back
Top Bottom