Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Other Forums
 MS Access
 Calling a query
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 03/05/2013 :  01:09:19  Show Profile  Reply with Quote
I am really, and I mean really new to VBA. 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. The queries are not hidden.
The following is VBA code and I am wondering what the Query they are calling here is actually called?

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;"
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 vba checker online, like there is a HTML5 code checker?

Thank you in advance for any help you can give.
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000