D
Dan M
Access XP adp file with SQL Server 2K back end.
Have a list box whose rowsource is a stored procedure.
The stored procedure is programmed to return one of two
recordsets from SELECT statements based on user's input on
a combo box. The column aliases are different between the
two select statements, but my column headings on the list
box don't change.
Here's a simplified version of my two SELECT statements:
SELECT EmployeeName as Name, EmployeePhone as Phone FROM
tblEmployees
SELECT EmployeeName as Name, EmployeeFax as Fax FROM
tblEmployees
The data does change, and fax numbers are displayed
instead of phone numbers when the user selects the Fax
Numbers option from the combo box. But the column
headings do not. So, I'm looking at fax numbers with a
column entitled Phone. Anyone ever seen this behavior?
Help!
Have a list box whose rowsource is a stored procedure.
The stored procedure is programmed to return one of two
recordsets from SELECT statements based on user's input on
a combo box. The column aliases are different between the
two select statements, but my column headings on the list
box don't change.
Here's a simplified version of my two SELECT statements:
SELECT EmployeeName as Name, EmployeePhone as Phone FROM
tblEmployees
SELECT EmployeeName as Name, EmployeeFax as Fax FROM
tblEmployees
The data does change, and fax numbers are displayed
instead of phone numbers when the user selects the Fax
Numbers option from the combo box. But the column
headings do not. So, I'm looking at fax numbers with a
column entitled Phone. Anyone ever seen this behavior?
Help!