Hello, a little background from me:
I have a database for customers and the key field is "Customer Number" (1,2,3,4....). I have an invoice for each customer which has their customer number (eg. 1price.doc, 2price.doc). I would like to be able to use a button that opens the invoice for that specific customer.
I can use RunApp and in the command line put "C:\Program Files\Microsoft Office 2007\Office12\WINWORD.EXE" "C:\Documents and Settings\Work\My Documents\Customer Files\1price.doc"
This works fine but will always open 1price.doc. I would like to change the macro so it uses the "Customer Number" field, so if I am on customer 43, and click the button to "View Invoice", it opens 43price.doc.
I hope I have explained this correctly and many thanks for your help
Sean
I have a database for customers and the key field is "Customer Number" (1,2,3,4....). I have an invoice for each customer which has their customer number (eg. 1price.doc, 2price.doc). I would like to be able to use a button that opens the invoice for that specific customer.
I can use RunApp and in the command line put "C:\Program Files\Microsoft Office 2007\Office12\WINWORD.EXE" "C:\Documents and Settings\Work\My Documents\Customer Files\1price.doc"
This works fine but will always open 1price.doc. I would like to change the macro so it uses the "Customer Number" field, so if I am on customer 43, and click the button to "View Invoice", it opens 43price.doc.
I hope I have explained this correctly and many thanks for your help
Sean