I have managed to fix the 1st problem, I was just missing ().
The second one is confusing me - I have it working in visual basic 6 module. However when I transfer it to the activeX module I receive the error.
Do I have to install anything?
...Export;Data Source=(local)","sa", ""
'You're database connection
Comm.ActiveConnection = Conn
Comm.CommandText = "SELECT * from final_reports_last_generated"
'Your sql string or SP.
Set Rcdset = Comm.Execute
' Process for no records to be exported.
If Rcdset.EOF Then
'...
Hi,
I have not used crystal reports before and dont really know where to start.
I have a SQL Server database with a Stored Procedure which pulls out all the information needed for the reports which i would like to generate. I plan to run this each night based on a SQL Server scheduled job so...
I have now changed the IF statements to not be a set to a variable but an actual SELECT statements:-
select Num_Months_A from #inforeporting)>=3 and (select Num_Months_A from #inforeporting)<6 )
This is the line causing an error as the temp table has two records in it.
How can you re-iterate...
I have created the stored procedure below to create reports based on a number of months. This works fine when there is only one record inserted into the temp table. If there is more I get the following error:-
Subquery returned more than 1 value. This is not permitted when the subquery follows...
I have a CDO stored procedure which works and send out emails. However I would now like the body of my email to be HTML so that I can apply formatting to the text.
However I am unsure how to set up the HTML tags and where to put them. I have change the main SP to this:-
EXEC @hr =...
I would like to run a store procedure for every record in a table.
Go to the first record
send an email
Go to the second record
and so on until every record has has an email sent.
I was just wondering how you do this in a SP, currently the SP only does it for the one record
Thanks in advance.
I have created an macros in an adp project that does exactly what I would like it to do.
Replaces a current Excel file with the new information.
The problem is that this needs to be run each week and I would like some way of automating it.I have tried doing this all in SQL Server however you...
Hi,
I have set up a DTS package which links to an Excel document. This document is going to be updated on a weekly basis.
However the problem is that when I run the query, the rows just append to what is already there and I would like to replace them.
I then tried to use an SQL Task in the...
I have tested for null fields ub BeforeUpdate, however the form still proceeds to close. I have used the following code:-
ElseIf IsNull(StreetName) = True Then
MsgBox ("Please fill in the STREET NAME")
Me.StreetName.BackColor = vbCyan
Cancel =...
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.