Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
mbevon
Starting Member
41 Posts |
Posted - 2002-07-04 : 13:29:03
|
| I'm new to this.I've an onclick behind a form command button, it suppose to open a report from a table on an sql2000 server.it's not workingCode:Private Sub Command224_Click() Dim tbll As String tbll = frmTableName & "L" strSQL = "SELECT fsc from tblL where sc=0 group by fsc" DoCmd.OpenReport "T1", acViewPreview End Sub |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2002-07-04 : 16:59:22
|
| strSQL = "SELECT fsc from " & tblL & " where sc=0 group by fsc"or juststrSQL = "SELECT fsc from " & frmTableName & "L where sc=0 group by fsc"Then you will need to use this string somewhere.Not sure what DoCmd.OpenReport "T1", acViewPreview is doing but I assume it is using the sql string created.==========================================Cursors are useful if you don't know sql.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|