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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Crystal 8.5 SQL temp Table

Status
Not open for further replies.

lovalles

IS-IT--Management
Sep 20, 2001
262
US
Public rsBM As New ADODB.Recordset
Public SQL As String
Public conn As New ADODB.Connection

Private Sub Command1_Click()
conn.Open ("Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=ClientUser;Initial Catalog=DATA_90;Data Source=SERVIDOR4")
SQL = "CREATE TABLE #t(x INT PRIMARY KEY) INSERT INTO #t VALUES (2) INSERT INTO #t VALUES (3)"
Set rsBM = conn.Execute(SQL)
End Sub

i have here created a temp table in SQL and added some values, now i want to generate a crystal report on vb based on this temp table. how can i do this?
when i create the table i know i have to specified some SPII or SPID in order to crystal to se the temp table.
Any help?
 
The thing is i make multiples recordsets and differente calculations so all this info i want to create a temp database and then generate the report from the temp database. i am actually workin but with a User table not a temp table. So if 2 users generate at the same time i have a problem so thats why i need the temp table.
Also i dont want to have that user table.
 
In that case i how can i create a recorset in VB with a previus temp table create with the code i just type before?
anyone?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top