I’d like some help with an SQL query from an Access database to an Excel named range.
The scenario is this:
On an Access form that displays the usual suspects of customer information from a table called Clients;
ClientID
Name
Surname
Company Name
Client type – selected from 3 possibilities in a drop down menu
Address1
Address2
Town/County
PostCode
TelNo
FaxNo
Email
I’d like to be able to run a query that will export the contact information for the customer whose records are currently open to view.
Say the database operator is looking at customer number 26, I’d like to be able to click a command button on the Access form that will transpose that customers records to a named range on an Excel worksheet in a workbook that will already be open. It is not important that the command button is on the Access form, it can be on the spreadsheet if need be.
This will only ever be required and used on that customer whose details are on current view.
Effectively, the query will copy and paste the customers contact details based on whichever customers particulars are open on the Customers form in Access.
Does anyone know how this can be achieved ?
I've posted the same question in the "Microsoft: Access Other topics" forum on this site. I thought it was the appropriate forum since I hadn't found this one at that time, so my apologies for cross posting.
The scenario is this:
On an Access form that displays the usual suspects of customer information from a table called Clients;
ClientID
Name
Surname
Company Name
Client type – selected from 3 possibilities in a drop down menu
Address1
Address2
Town/County
PostCode
TelNo
FaxNo
I’d like to be able to run a query that will export the contact information for the customer whose records are currently open to view.
Say the database operator is looking at customer number 26, I’d like to be able to click a command button on the Access form that will transpose that customers records to a named range on an Excel worksheet in a workbook that will already be open. It is not important that the command button is on the Access form, it can be on the spreadsheet if need be.
This will only ever be required and used on that customer whose details are on current view.
Effectively, the query will copy and paste the customers contact details based on whichever customers particulars are open on the Customers form in Access.
Does anyone know how this can be achieved ?
I've posted the same question in the "Microsoft: Access Other topics" forum on this site. I thought it was the appropriate forum since I hadn't found this one at that time, so my apologies for cross posting.