< < < 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? 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
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
Thanks for your helpful comments. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
| |