User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 391,659 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,826 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 1291 | Replies: 5
Reply
Join Date: Oct 2006
Posts: 3
Reputation: ekeyte is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ekeyte ekeyte is offline Offline
Newbie Poster

Help Basic Access Question

  #1  
Feb 18th, 2007
Hello,

I am a novice Access 2002 user and I'd like to delete all rows where the "category" fields says "buyer" as I do not need this information in my Real Estate database.

For example, I tried setting a query in SQL view with these parameters:

 DELETE FROM [dbRealEstate] WHERE [dbRealEstate].Category ="buyer"

But since this is a command and not really a query, I am wondering where to do this. I also am seeing people writing VBScript into Access, but am wondering where I can do this. I have extensive experience with VBScript but it has been several years since I've used it and I haven't ever paired it with Access.

Thank you,
Eric
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 264
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Basic Access Question

  #2  
Feb 18th, 2007
yeah, you could use VBA (basically VB6 but in access) or maybe a macro?
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Oct 2006
Posts: 3
Reputation: ekeyte is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ekeyte ekeyte is offline Offline
Newbie Poster

Re: Basic Access Question

  #3  
Feb 18th, 2007
Where do I enter a macro or use VBA?
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 264
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Basic Access Question

  #4  
Feb 18th, 2007
tools -> macro -> visual basic editor

or right click on a command button on a form and choose code builder if you want to do it that way
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Feb 2007
Posts: 2
Reputation: TJ Bowers is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
TJ Bowers TJ Bowers is offline Offline
Newbie Poster

Re: Basic Access Question

  #5  
Feb 21st, 2007
On the main access menu, choose queries/new/design view... when the query design window opens - the "SELECT TABLES" window appears - click CLOSE. The top line display changes. Click on the "SQL" item in the top row. You can enter your "command" (sql text) there. Then click on the "RED EXCLAMATION POINT" -- when means "RUN" ... that's all there is too it.
Last edited by TJ Bowers : Feb 21st, 2007 at 10:49 am. Reason: left out part of the explanation
Reply With Quote  
Join Date: Feb 2007
Posts: 2
Reputation: TJ Bowers is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
TJ Bowers TJ Bowers is offline Offline
Newbie Poster

Re: Basic Access Question

  #6  
Feb 21st, 2007
... or use design view. Select the table name from the SHOW TABLE list. Double left click on the field name CATEGORY. On the CRITERIA line under that field, type "buyer". Choose query type = Delete ... (look at buttons on top row)... This process writes the sql statment for you with correct syntax.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 1:40 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC