PC Review


Reply
Thread Tools Rate Thread

Combo box wizard gives error message:

 
 
Frank Martin
Guest
Posts: n/a
 
      6th Jan 2005
I have a main form "FrmCustPrice" based on a query "QryAddresses."

This "FrmCustPrice" has a subform called "FrmCustPriceListSUB" and it was
formed via the subform/subreport wizard which gave the following

SELECT QryCustPrice.ProductID, Products.Description, Products.Unit,
QryCustPrice.ItemPrice, QryCustPrice.CustProductCode,
QryCustPrice.AddressesID FROM Products INNER JOIN QryCustPrice ON
Products.ProductID = QryCustPrice.ProductID;

The main form & subform are linked via "AddressesID"

On the main form I am trying to make a Combo box to find a record on it,
but the combo wizard gives the following error message:

"Syntax error in From clause."

I have Access2000
Please help, Frank



 
Reply With Quote
 
 
 
 
Penguin
Guest
Posts: n/a
 
      6th Jan 2005
Try posting the Row Source of the combo box. Then maybe someone can
help.

On Thu, 6 Jan 2005 12:14:33 +1100, "Frank Martin"
<(E-Mail Removed)> wrote:

>I have a main form "FrmCustPrice" based on a query "QryAddresses."
>
>This "FrmCustPrice" has a subform called "FrmCustPriceListSUB" and it was
>formed via the subform/subreport wizard which gave the following
>
>SELECT QryCustPrice.ProductID, Products.Description, Products.Unit,
>QryCustPrice.ItemPrice, QryCustPrice.CustProductCode,
>QryCustPrice.AddressesID FROM Products INNER JOIN QryCustPrice ON
>Products.ProductID = QryCustPrice.ProductID;
>
>The main form & subform are linked via "AddressesID"
>
>On the main form I am trying to make a Combo box to find a record on it,
>but the combo wizard gives the following error message:
>
>"Syntax error in From clause."
>
>I have Access2000
>Please help, Frank
>
>


 
Reply With Quote
 
Frank Martin
Guest
Posts: n/a
 
      6th Jan 2005
The wizard does not get to the stage of producing a Row Source because the
error message "Syntax error in From clause" intervenes.



"Penguin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try posting the Row Source of the combo box. Then maybe someone can
> help.
>
> On Thu, 6 Jan 2005 12:14:33 +1100, "Frank Martin"
> <(E-Mail Removed)> wrote:
>
> >I have a main form "FrmCustPrice" based on a query "QryAddresses."
> >
> >This "FrmCustPrice" has a subform called "FrmCustPriceListSUB" and it was
> >formed via the subform/subreport wizard which gave the following
> >
> >SELECT QryCustPrice.ProductID, Products.Description, Products.Unit,
> >QryCustPrice.ItemPrice, QryCustPrice.CustProductCode,
> >QryCustPrice.AddressesID FROM Products INNER JOIN QryCustPrice ON
> >Products.ProductID = QryCustPrice.ProductID;
> >
> >The main form & subform are linked via "AddressesID"
> >
> >On the main form I am trying to make a Combo box to find a record on it,
> >but the combo wizard gives the following error message:
> >
> >"Syntax error in From clause."
> >
> >I have Access2000
> >Please help, Frank
> >
> >

>



 
Reply With Quote
 
Frank Martin
Guest
Posts: n/a
 
      7th Jan 2005
Thanks, I fixed it by making the RowSource equal to an actual query and not
an SQL statement.



"Penguin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try posting the Row Source of the combo box. Then maybe someone can
> help.
>
> On Thu, 6 Jan 2005 12:14:33 +1100, "Frank Martin"
> <(E-Mail Removed)> wrote:
>
> >I have a main form "FrmCustPrice" based on a query "QryAddresses."
> >
> >This "FrmCustPrice" has a subform called "FrmCustPriceListSUB" and it was
> >formed via the subform/subreport wizard which gave the following
> >
> >SELECT QryCustPrice.ProductID, Products.Description, Products.Unit,
> >QryCustPrice.ItemPrice, QryCustPrice.CustProductCode,
> >QryCustPrice.AddressesID FROM Products INNER JOIN QryCustPrice ON
> >Products.ProductID = QryCustPrice.ProductID;
> >
> >The main form & subform are linked via "AddressesID"
> >
> >On the main form I am trying to make a Combo box to find a record on it,
> >but the combo wizard gives the following error message:
> >
> >"Syntax error in From clause."
> >
> >I have Access2000
> >Please help, Frank
> >
> >

>



 
Reply With Quote
 
Penguin
Guest
Posts: n/a
 
      7th Jan 2005
Your RowSource can be an SQL statement. If you receive an error then
copy the SQL statement from the combo box and paste it into a query.
Run the query to find the error. Once corrected then copy the SQL of
the query back to the combo box.

On Fri, 7 Jan 2005 13:53:47 +1100, "Frank Martin"
<(E-Mail Removed)> wrote:

>Thanks, I fixed it by making the RowSource equal to an actual query and not
>an SQL statement.
>
>
>
>"Penguin" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> Try posting the Row Source of the combo box. Then maybe someone can
>> help.
>>
>> On Thu, 6 Jan 2005 12:14:33 +1100, "Frank Martin"
>> <(E-Mail Removed)> wrote:
>>
>> >I have a main form "FrmCustPrice" based on a query "QryAddresses."
>> >
>> >This "FrmCustPrice" has a subform called "FrmCustPriceListSUB" and it was
>> >formed via the subform/subreport wizard which gave the following
>> >
>> >SELECT QryCustPrice.ProductID, Products.Description, Products.Unit,
>> >QryCustPrice.ItemPrice, QryCustPrice.CustProductCode,
>> >QryCustPrice.AddressesID FROM Products INNER JOIN QryCustPrice ON
>> >Products.ProductID = QryCustPrice.ProductID;
>> >
>> >The main form & subform are linked via "AddressesID"
>> >
>> >On the main form I am trying to make a Combo box to find a record on it,
>> >but the combo wizard gives the following error message:
>> >
>> >"Syntax error in From clause."
>> >
>> >I have Access2000
>> >Please help, Frank
>> >
>> >

>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open form based on combo box value w/error message for blank combo box Ruth Microsoft Access 0 20th Apr 2007 11:00 PM
Q: Very strange error in combo-box wizard =?Utf-8?B?TWFyaw==?= Microsoft Access VBA Modules 3 31st Mar 2006 06:09 PM
I get an error when I try to create a combo box from the wizard Microsoft Access Forms 3 1st Sep 2004 09:07 PM
I get an error when I try to create a combo box from the wizard Microsoft Access Queries 3 1st Sep 2004 09:07 PM
Error when creating a Combo box using the wizard Al Microsoft Access Forms 0 23rd Aug 2003 02:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 PM.