Thanks dhookom,
I'm still learning but would I replace the "SELECT statement" with "EXEC sp_FinanceExecData1"
strSQL = "SELECT field1, field2, field3 FROM tblMyTable " & _
"WHERE OrderDate BETWEEN #" & Me.txtStart & "# AND #" & _
Me.txtEnd & "# " & _
"ORDER BY field2, field1 DESC"
Thanks
John
Hi,
I have created a stored procedure in SQL Server and now I want to update a table within Access using the Stored Procedure.
I have searching the web and found this but I get a 3065 runtime error.
Dim qdef As DAO.QueryDef
Set qdef = CurrentDb.CreateQueryDef("")
qdef.Connect =...
Hi,
I have written lots of the queries but I'm struggling with this one.
I get the run-time error 3065 when I run the following sql.
Dim db As DAO.Database
Dim sqlstring As String
Set db = DBEngine(0).Databases(0)
sqlstring = "SELECT ebk.hr_leav_amnt AS hr_clia_hour, ebk.hr_leav_type...
I have a webpage with two frames.
Top frame has list box which stores a variable
Bottom frame has a report from which it uses a variable in the topframe.
I have search the net but cannot get it working.
Can anyone help.
Hi I'm trying to create a This Period and Year to Date fields.
Current Table has:
Item, Amount, Period (month of transaction), RPeriod (Current Month)
What I want to do is have the following fields:
This Period: Sum of Amount where Period = RPeriod
YTD: Sum of Amount where Period >= 1 and <=...
Hi , I have a database where in one table I have a list of my projects and in the second table I a list of actions which are linked to the project. I want to run a query then report on the last 3 actions for each project. I have tried SELECT TOP 3 but it only gives my top 3 in that table not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.