How do i get the customer account number? VB6 Com addin

Jul 19, 2006 1 Replies

When adding a new customer am using hook 11, parameter 5 (pass id) unfortunatly the thing passes the ID as a long and chops all the leading 0's or any store id all i get is the basic number eg 4,5,6,7,8 for customers 4-8. Is there any way i can get the correct formatted account number?? I've tried the session object but its totally empty, there's nothing in it.


That's Customer.ID, not Customer.AccountNumber...

Run a query against the database to get whatever other information you wanted for the customer. Hooks only work at the store level, so the StoreID is the same for every record - that's only important at HQ.

Glenn Adams Tiber Creek C> When adding a new customer am using hook 11, parameter 5 (pass id)

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required