Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ms access crosstab query in aspx page?

Status
Not open for further replies.

zerkat

Programmer
Jul 12, 2007
103
US
Is it possible to somehow call an Access Crosstab query from within an aspx page?
 
Great, we have an access database used to manage our projects and it has several crosstab queries in it for reports. I am setting up the DALs and BELs now. What would the syntax be to use a crosstab query in the DAL?

Right now all I have is:

Imports System.Data.OleDb

Public Function GetData()

Dim con As OleDbConnection
Dim cmd As OleDbcommand = New OleDbCommand
Dim strConnectionString As String
Dim startDate as String -- for input param
Dim endDate As String -- for input param

strConnectionString = ConfigurationManager.AppSettings("ConnectionString")

con = NewOleDbConnection(strConnectionString)
cmd.Connection = con
cmd = -- not sure what to use here to run crosstab

End Function

Thanks
 
ok - I am feeling dense today. All I need to do is copy the query from access and put in my function. For some reason I was thinking I could reference it in some way like access.queries.QueryName. Of course Microsoft has not integrated their products that well. I'll just have to do some crazy joining to get it to work - just what I want to start on a Friday afternoon....lovely.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top