Robert,
What is the name of the table, is it really City(Table)Query?
My guess is that you should only name the referring table as your source so
it could be something like this: Set rs = db.OpenRecordset("City",
dbOpenDynaset)
If it's a query you are using choose that name. If neither is the case try
renaming the source without the brackets.
Maurice
> I am working with the example code written by Dev Ashish from The Access Web
> site and I have run into a brick wall.
[quoted text clipped - 45 lines]
>
> Any assistance that can be offered will be greatly appreciated.
Robert - 06 May 2007 20:36 GMT
Maurice,
Thank you for responding.
The actual name of the query is "City (table) Query", additionally the name
of the table is City (table). Either way I get the same result.
If I remove the "()" the message error changes to a Run-time error '3078',
The Microsoft Jet database engine cannot find the input table or query "City
table" in this case. Make sure it exists and that its name is spelled
correctly.
I am unable to reach beyond these two issues.

Signature
Robert
> Robert,
>
[quoted text clipped - 58 lines]
> >
> > Any assistance that can be offered will be greatly appreciated.
Douglas J. Steele - 06 May 2007 20:43 GMT
When you have embedded spaces or special characters, you need to enclose the
table or field name in square brackets.
Set rs = db.OpenRecordset("[City (table) Query]", dbOpenDynaset)

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
> Maurice,
>
[quoted text clipped - 81 lines]
>> >
>> > Any assistance that can be offered will be greatly appreciated.
Robert - 06 May 2007 20:52 GMT
Douglas,
Thanks for responding.
I just tried that again and again received the Run-time error '3078' as
decribed below.

Signature
Robert
> When you have embedded spaces or special characters, you need to enclose the
> table or field name in square brackets.
[quoted text clipped - 86 lines]
> >> >
> >> > Any assistance that can be offered will be greatly appreciated.
Ofer Cohen - 06 May 2007 21:58 GMT
I tried it and I got the same error, I stop getting it when I wrote the full
select
Set rs = db.OpenRecordset("Select * From [City (table) Query]", dbOpenDynaset)
Note: make sure that the table name is still the same

Signature
Good Luck
BS"D
> Douglas,
>
[quoted text clipped - 93 lines]
> > >> >
> > >> > Any assistance that can be offered will be greatly appreciated.
Maurice - 07 May 2007 08:41 GMT
Robert,
Ofer has just given you a resolution to your problem but I still want to
point out to you the fact that the name of the table is not all that
workable. I know it might be that you got the structure of someone else but
if it is your design please reconsider renaming the table. My guess would be
that it won't be the last time you will bump into brackets, semicolons atc..
Mauirce
> I tried it and I got the same error, I stop getting it when I wrote the full
> select
[quoted text clipped - 100 lines]
> > > >> >
> > > >> > Any assistance that can be offered will be greatly appreciated.