Hi there,
I've got a form with a listbox and what I would like is to have a button that opens an excel template that imports data from an excel query. The query qryMyQuery uses column 0 of the listbox as its criteria.
I set up the spreadsheet with a database query so that each time it opens it is updated with the contents of the query. This worked if the criteria of the query was eg. "5" but when set to [MyListBox] the excel document would not open - error message: "Too few parameters - expected 1". I then used a function GetID("MyListBox") to try and solve this problem. However, now I get error message "Undefined Function in Expression".
Is there a way to get excel to recognise my function?
I've got a form with a listbox and what I would like is to have a button that opens an excel template that imports data from an excel query. The query qryMyQuery uses column 0 of the listbox as its criteria.
I set up the spreadsheet with a database query so that each time it opens it is updated with the contents of the query. This worked if the criteria of the query was eg. "5" but when set to [MyListBox] the excel document would not open - error message: "Too few parameters - expected 1". I then used a function GetID("MyListBox") to try and solve this problem. However, now I get error message "Undefined Function in Expression".
Is there a way to get excel to recognise my function?