A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using a Password With an SQL IN Clause



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 08:46 PM posted to microsoft.public.access.queries
revans611
external usenet poster
 
Posts: 1
Default Using a Password With an SQL IN Clause

I am trying to delete records from an external database using a SQL IN
clause, but my syntax is obviously flawed. My code looks like this: DELETE *
FROM myTable IN "C:\myFolder\myDatabase_BE.mdb" ";PWD=abcd"

This gives me an error message that says my password is invalid although I
am using the same password in a SELECT statement without a problem.
--
Rob Evans
  #2  
Old April 20th, 2010, 02:47 PM posted to microsoft.public.access.queries
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Using a Password With an SQL IN Clause

On Mon, 19 Apr 2010 12:46:01 -0700, revans611
wrote:

One workaround would be to temporarily attach the table, run the
Delete statement, and detach.

-Tom.
Microsoft Access MVP


I am trying to delete records from an external database using a SQL IN
clause, but my syntax is obviously flawed. My code looks like this: DELETE *
FROM myTable IN "C:\myFolder\myDatabase_BE.mdb" ";PWD=abcd"

This gives me an error message that says my password is invalid although I
am using the same password in a SELECT statement without a problem.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.