Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / November 2005

Tip: Looking for answers? Try searching our database.

Delete Records in Form Upon Close

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
VLee.KHer@gmail.com - 21 Nov 2005 20:35 GMT
Greetings,

I am trying to delete records from a form upon closing of the form if
the record has been updated using a toggle button.  Would it be easier
just to run a delete query for this?  Is it possible to delete upon
close?

Thank you in advance,

VLee.KHer
Tim - 21 Nov 2005 20:52 GMT
I would create a delete query, set the criteria for it to run, and then
create a macro that would close  the form then run the qurey.

>Greetings,
>
[quoted text clipped - 6 lines]
>
>VLee.KHer
Pat Hartman(MVP) - 21 Nov 2005 21:19 GMT
Forms don't hold records, tables hold records.  Are you talking about
deleting the single current record or are you talking about deleting records
which have been flagged in some way by the toggle button?

> Greetings,
>
[quoted text clipped - 6 lines]
>
> VLee.KHer
John Vinson - 21 Nov 2005 23:48 GMT
>Greetings,
>
>I am trying to delete records from a form upon closing of the form if
>the record has been updated using a toggle button.  Would it be easier
>just to run a delete query for this?  Is it possible to delete upon
>close?

Well, considering that records are not stored in forms, if you do mean
to use the plural (deleting multiple records) then yes, a Delete query
is essential.

I'm curious why you would want to do this. It sounds like you're using
the form to create or edit a record in the table, and then discarding
that record... am I misunderstanding?

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.