Thanks much for the response, Ken. The code you asked about is all on one
line. Also, I'm unable to save the query because every time I try to do so I
get the "Invalid SQL..." message. (I did, however insert the DoCmd. I
didn't know about that so that's a big help) Also, I know that this code
works ok on another computer that belongs to another guy I was talking to on
the internet (not on a MS help site). That's one thing that led me to wonder
whether I had goofed somewhere else, like in Tools>References or whatever. By
the way my OS is Vista Ultimate 64 bit, if that's relevant. Any further help
will be much appreciated. I'm stymied here at the outset of my marvelous
Access adventures.
> By the way, I just noted that you're expecting this code to open the query
> in a datasheet view. It will not do that. When you open a recordset this
[quoted text clipped - 45 lines]
> >>
> >> End Sub
Ken Snell (MVP) - 22 Apr 2008 03:32 GMT
You're saying that, if you paste this SQL statement into the SQL View of a
new query, you cannot save the query?
SELECT [Portfolio Holdings and Value].[Security Name],
[Portfolio Holdings and Value].[Security Type],
[Portfolio Holdings and Value].[Market Value]
FROM [Portfolio Holdings and Value]
ORDER BY [Portfolio Holdings and Value].[Security Type]
I do not have ACCESS 2007 installed on a VISTA 64-bit operating system, so I
cannot test your code. But, I don't see anything obviously wrong with your
posted code or SQL statement.
I'll see if I can engage the attention of another person who might be able
to assist in this thread.

Signature
Ken Snell
<MS ACCESS MVP>
> Thanks much for the response, Ken. The code you asked about is all on one
> line. Also, I'm unable to save the query because every time I try to do so
[quoted text clipped - 70 lines]
>> >>
>> >> End Sub
JCIrish - 23 Apr 2008 17:11 GMT
Thanks so much, Ken, for getting back to me. I really appreciate your help.
My problem still exists. I'm wondering at this point if there is something
missing in my installation of Access 2007. For example I've also received the
message at times, "ODBC driver manager data source name not found and no
default driver specified". I don't know how to verify if the Access on my
computer is missing files. I've heard something about a Service Pack for
Access 2007 and I'm loolking into that. I would be glad to hear from someone
else if you can grab his or her attention.
> You're saying that, if you paste this SQL statement into the SQL View of a
> new query, you cannot save the query?
[quoted text clipped - 85 lines]
> >> >>
> >> >> End Sub
Ken Snell (MVP) - 27 Apr 2008 19:59 GMT
There is an SP1 update available for Office 2007:
http://www.microsoft.com/downloads/details.aspx?FamilyId=9EC51594-992C-4165-A997
-25DA01F388F5&displaylang=en
My contact at Microsoft is trying to arrange a test on a machine that has
VISTA Ultimate 64-bit and ACCESS 2007; but I've not heard from him yet
regarding any tests.
Post back and let us know if applying SP1 helps or not.

Signature
Ken Snell
<MS ACCESS MVP>
> Thanks so much, Ken, for getting back to me. I really appreciate your
> help.
[quoted text clipped - 7 lines]
> someone
> else if you can grab his or her attention.
JCIrish - 29 Apr 2008 05:16 GMT
Thanks, Ken. Sorry to be so late in getting back to you. Been swamped wih
other concerns lately. I will download and install SP1 in the next couple of
days. Thanks for the link. You really have gone "above and beyond" on this
issue and I appreciate it.
JCIrish
> There is an SP1 update available for Office 2007:
> http://www.microsoft.com/downloads/details.aspx?FamilyId=9EC51594-992C-4165-A997
-25DA01F388F5&displaylang=en
[quoted text clipped - 15 lines]
> > someone
> > else if you can grab his or her attention.
JCIrish - 04 May 2008 02:08 GMT
Ken,
Just wanted to let you know that I finally got around to installing SP-1 on
my computer. After installation I wrote a small bit of VBA code to open a db
file and return the number of records. It worked fine. Sooo, I'm not
well-enough informed in this area to draw any firm conclusions, but it all
makes me wonder. Thanks again for your help.
JCIrish
> There is an SP1 update available for Office 2007:
> http://www.microsoft.com/downloads/details.aspx?FamilyId=9EC51594-992C-4165-A997
-25DA01F388F5&displaylang=en
[quoted text clipped - 15 lines]
> > someone
> > else if you can grab his or her attention.
Ken Snell (MVP) - 04 May 2008 04:50 GMT
Thanks for the feedback; I'll pass this along to Microsoft. Glad it's now
working!

Signature
Ken Snell
<MS ACCESS MVP>
> Ken,
>
[quoted text clipped - 32 lines]
>> > someone
>> > else if you can grab his or her attention.