A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Make Table Query Using Form Criteria



 
 
Thread Tools Display Modes
  #1  
Old July 22nd, 2004, 10:06 PM
Tee
external usenet poster
 
Posts: n/a
Default Make Table Query Using Form Criteria

I set one of the fields' criteria of my make table query
to a value on a Form (ex. [Forms]![Field]![txtBox])This
works fine if I run the query from the Database window.
However, I am using VB to db.Execute the query. When the
code runs, it errors stating expression needed.

Any help is appreciated.
Thanks
  #2  
Old July 26th, 2004, 12:13 AM
Eric Butts [MSFT]
external usenet poster
 
Posts: n/a
Default Make Table Query Using Form Criteria

Hi Tee,

Take a look at the solutions in

ACC2000: "Too Few Parameters. Expected 1" Error Message (209203)
http://support.microsoft.com/default...B;EN-US;209203

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/security_bulletins/ms03-026.asp and/or
to visit Windows Update at http://windowsupdate.microsoft.com/ to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights


--------------------
| Content-Class: urn:content-classes:message
| From: "Tee"
| Sender: "Tee"
| Subject: Make Table Query Using Form Criteria
| Date: Thu, 22 Jul 2004 14:06:12 -0700
| Lines: 8
| Message-ID:
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcRwL7fIc3xQZN1dSEiUnES+Bxq5bQ==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.access.queries
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:207719
| NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
| X-Tomcat-NG: microsoft.public.access.queries
|
| I set one of the fields' criteria of my make table query
| to a value on a Form (ex. [Forms]![Field]![txtBox])This
| works fine if I run the query from the Database window.
| However, I am using VB to db.Execute the query. When the
| code runs, it errors stating expression needed.
|
| Any help is appreciated.
| Thanks
|

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto entry into second table after update Tony New Users 13 July 9th, 2004 10:42 PM
Newbie? Do I use Report or Query John Egan New Users 11 June 28th, 2004 08:31 PM
Transfer Query Info. To Table Delano General Discussion 1 June 18th, 2004 11:52 PM
How to make the existing form use different query zaskodnik Using Forms 3 June 17th, 2004 01:44 AM


All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.