Selasa, 31 Juli 2012

Re: [MS_AccessPros] Make table query based on a prompt from user

 

John

Thank You
 
Jim Wagner
________________________________

________________________________
From: John Viescas <JohnV@msn.com>
To: MS_Access_Professionals@yahoogroups.com
Sent: Monday, July 30, 2012 10:49 PM
Subject: RE: [MS_AccessPros] Make table query based on a prompt from user


 
Jim-

Duane is correct. You can use a Parameter in a query only where a literal would
otherwise be accepted for use *after* the SQL is parsed. So you cannot use a
Parameter to do a dynamic substitution of a field or table name. Building a
query "on the fly" in code is the way to go.

John Viescas, author
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Microsoft Access Applications
Microsoft Office Access 2003 Inside Out
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)

-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Duane Hookom
Sent: Tuesday, July 31, 2012 12:00 AM
To: Access Professionals Yahoo Group
Subject: RE: [MS_AccessPros] Make table query based on a prompt from user

I don't believe this can be done without some code that updates the SQL property
of a saved make table query or renames the table after created.

Duane

----------------------------------------
> To: MS_Access_Professionals@yahoogroups.com
> From: luvmymelody@yahoo.com
> Date: Mon, 30 Jul 2012 21:56:52 +0000
> Subject: [MS_AccessPros] Make table query based on a prompt from user
>
> Hello all
>
> Is there a way to run a make table query that will allow the user to change
the name from a form or from a prompt?
>
> A user wants to create a table but decide what to name it at run time. It is a
yearly task that she wants to be more elegant.
>
> Thank You
>
> Jim Wagner
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

------------------------------------

Yahoo! Groups Links

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar