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

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.

Reply to
BTL Developer
Loading thread data ...

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)

Reply to
Glenn Adams [MVP - Retail Mgmt]

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.