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 |
|
ramonmch
Starting Member
5 Posts |
Posted - 2004-05-21 : 17:01:03
|
| I have just switched from msaccess and do not know how to build expressions as in access. Also do not know how to compare a field column to a variable within a FORM. Please advise how to get more info on building queries with variables. thanks |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-05-21 : 17:03:55
|
| DECLARE @Var1 INTSET @Var1 = 2SELECT *FROM Table1WHERE Column1 = @Var1Tara |
 |
|
|
ramonmch
Starting Member
5 Posts |
Posted - 2004-05-24 : 12:36:12
|
| TaraThanks for the ansewer but the question is:If I have a form in an access project (adp), when we create a query with a where clause like:SELECT * FROM Table1WHERE Column1=Form_Form1.myvarthis should do in access but it does not works the same with sql server.What Am I doing wrong ?Thanks |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|
|