SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Calling A query in SQL
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Canadian-Cash
Starting Member

2 Posts

Posted - 03/05/2013 :  00:29:53  Show Profile  Reply with Quote
I am really, and I mean really new to SQL. Right now I am taking an Access 95 database and putting it into a Access 2007 database. I have been managing to limp by up until this latest form. To simplify things I have kept all forms, queries, reports, fields, etc by the same names. However, some of his queries do not show up in the Queries area. I am assuming that this is because he wrote these in SQL. This is a sample of the SQL from the old database.

If Frame30.Value=1 And Not IsNull(Forms!EdEnroll!Department.Value) Then
DoCmd.RunSQL "UPDATE wrkTable SET Wrktable.Chosen=True "&_
"Where WrkTable.Department=Forms!EdEnroll!Department.Value;"
Forms!EdEnroll.Repaint
End If

My question here is do I have to create an update query in access for this code to work? Or is it running the query through the code? If the latter is true, why wouldn't my code be working?

Is there an sql checker online, like there is a HTML5 code checker?

Thank you in advance for any help you can give.

waterduck
Aged Yak Warrior

Malaysia
964 Posts

Posted - 03/05/2013 :  00:33:40  Show Profile  Reply with Quote
seems to be vba to me...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52320 Posts

Posted - 03/05/2013 :  00:33:44  Show Profile  Reply with Quote
sound like you're asking on Access query. If yes, please post in Access related forum

http://www.sqlteam.com/forums/forum.asp?FORUM_ID=3

this is ms sql server forum

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000