473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

A97 error #3067 occurs when it really should not

MLH
< < < VERY LOW PRIORITY POST > > >
When I'm creating a query in the QBE grid whose SQL looks like this...

INSERT INTO tblOwners (OwnerFName, OwnerLName, OwnerAddr, OwnerCity,
OwnerState, OwnerZip, OwnerPhone, OwnerSSN, UserID)
SELECT [Forms]![frmENF263ProcessingForm]![Text100] AS OwnerFName,
[Forms]![frmENF263ProcessingForm]![Text102] AS OwnerLName,
[Forms]![frmENF263ProcessingForm]![Text104] AS OwnerAddr,
[Forms]![frmENF263ProcessingForm]![Text106] AS OwnerCity,
[Forms]![frmENF263ProcessingForm]![Text108] AS OwnerState,
[Forms]![frmENF263ProcessingForm]![Text110] AS OwnerZip,
[Forms]![frmENF263ProcessingForm]![Text112] AS OwnerPhone,
[Forms]![frmENF263ProcessingForm]![Text114] AS OwnerSSN,
GetCurrentUser() AS UserID;

The following error is returned if I try to run it...
Query input must contain at least one table or query. (Error 3067)

Here is a description of the error...
In Microsoft Jet databases, this error occurs if you don't select a
table name when you create a query. Select at least one table or
query.
In ODBCDirect databases, this error occurs if you attempt to execute a
query that does not contain an SQL statement. Include at least one
query or stored procedure call in the QueryDef object’s SQL property.

Of course, the SQL is clearly not sourcing a table from which to pull
data destined for tblOwners. All the source data is from a form. This
is a standard query-by-form. It requires no input table or query.

And yes, the SQL runs fine from within VBA. No such error is returned
there. Can I do something different to avoid this error when creating
and running queries with the QBE grid tool?
Nov 13 '05 #1
4 2938
"MLH" <CR**@NorthState.net> wrote in message
news:qi********************************@4ax.com...
< < < VERY LOW PRIORITY POST > > >
When I'm creating a query in the QBE grid whose SQL looks like this...

INSERT INTO tblOwners (OwnerFName, OwnerLName, OwnerAddr, OwnerCity,
OwnerState, OwnerZip, OwnerPhone, OwnerSSN, UserID)
SELECT [Forms]![frmENF263ProcessingForm]![Text100] AS OwnerFName,
[Forms]![frmENF263ProcessingForm]![Text102] AS OwnerLName,
[Forms]![frmENF263ProcessingForm]![Text104] AS OwnerAddr,
[Forms]![frmENF263ProcessingForm]![Text106] AS OwnerCity,
[Forms]![frmENF263ProcessingForm]![Text108] AS OwnerState,
[Forms]![frmENF263ProcessingForm]![Text110] AS OwnerZip,
[Forms]![frmENF263ProcessingForm]![Text112] AS OwnerPhone,
[Forms]![frmENF263ProcessingForm]![Text114] AS OwnerSSN,
GetCurrentUser() AS UserID;

The following error is returned if I try to run it...
Query input must contain at least one table or query. (Error 3067)

Here is a description of the error...
In Microsoft Jet databases, this error occurs if you don't select a
table name when you create a query. Select at least one table or
query.
In ODBCDirect databases, this error occurs if you attempt to execute a
query that does not contain an SQL statement. Include at least one
query or stored procedure call in the QueryDef object's SQL property.

Of course, the SQL is clearly not sourcing a table from which to pull
data destined for tblOwners. All the source data is from a form. This
is a standard query-by-form. It requires no input table or query.

And yes, the SQL runs fine from within VBA. No such error is returned
there. Can I do something different to avoid this error when creating
and running queries with the QBE grid tool?


If you're not "Selecting" from a table then use VALUES instead of SELECT.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
MLH
Thank-you, Rick.
Nov 13 '05 #3
MLH wrote:
INSERT INTO tblOwners (OwnerFName, OwnerLName, OwnerAddr, OwnerCity,
OwnerState, OwnerZip, OwnerPhone, OwnerSSN, UserID)
SELECT [Forms]![frmENF263ProcessingForm]![Text100] AS OwnerFName,


I hope you read what David Fenton wrote on one of your other whinging posts.

Why do you think the error should not occur? You used select without a
table.

There's a reason for all your troubles - you whinge and complain too
much and so damn loudly everytime you run into something you're too damn
lazy to check what is one of the best help files ever made.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "What's UP, Dittoooooo?" - Ditto
Nov 13 '05 #4
MLH
Thanks for your helpful comments.
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Thelma Lubkin | last post by:
I use code extensively; I probably overuse it. But I've been using error trapping very sparingly, and now I've been trapped by that. A form that works for me on the system I'm using, apparently...
21
by: Anthony England | last post by:
Everyone knows that global variables get re-set in an mdb when an un-handled error is encountered, but it seems that this also happens when the variable is defined as private at form-level. So...
4
by: Mike | last post by:
I created a StreamReader object from a local file on my c:\ drive StreamReader srTemp = new StreamReader("C:\\myFile.txt") I then used a RegEx to strip out all the html and save what's left to...
3
by: Antti Keskinen | last post by:
Hello ppl ! Since this newsgroup is a place where Microsoft MVPs or related visit somewhat often, could someone give me an advice with possible causes of this error. Note that it does not happen...
2
by: Chuck Ritzke | last post by:
Hi all, I am getting an intermittant error after uploading a project from my development machine. I click on a link which opens an aspx page that, upon page load, reads a very small amount of...
4
by: Együd Csaba | last post by:
Hi, the restoration of a dump stops at the line above. The dump was created with pgsql 7.3.2 and I need to pump it into a 7.4.3 one. Should anybody tell me what the problem can be and how I can...
7
by: DC | last post by:
Hi, there is a 500;13 page one can configure in the website properties, but ..Net Framework 1.1 also delivers the "server too busy" message sometimes and the IIS custom error page does not seem...
5
by: rcoco | last post by:
Hi, I have this project it has a folder that it's supposed to read but when I run an error occurs the type or namespace name src could not be found(areyou missing a using directive or an assembly...
5
by: Jeff | last post by:
Okay, I'm still new to vb.net 2005 - throught this was a hardware problem, but now I don't know. (I'm having some problem with my newgroup provider, so hopefully this will go through) This...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.