psbsmms
Programmer
- Dec 14, 2001
- 74
I have been converted from Crystal Reports by all your talk of how great the reporting in Access is. I have a access DB that I need to get a invoice out of and I am trying to create a function that retrieves the city state and zip from the customer table and creates a concencrated string that I can place in an IFF function on the invoice report. Every time I try to write the function any reference to the customer table results in an error of undefined variable. i have the function as addres2 and declaied varibles for the city state and zip, but to get the varibles to equal a record in the table has gone no where. Every time I try to connect and set a variable as Database the vba gives me the same undeclaired type or varible since I thought the answer would be to open a DAO or ADO Recordset am I on the right track?