I figure there must be a fairly standard way to handle deleting related
records in different tables with code. I know you can set the Cascade Delete
Related Records when setting up the relationship but I already have records
in one table and not the other which keeps me from setting this now. I would
think the perferred way to handle it with code anyway. Does anyone know of a
bit of code that shows how to do it? Also I'm having trouble getting a sub
form to work correctly when there are no related records in the sub form
records. I want to be able to add the records thru the sub form but the form
doesn't show up anywhere there are not already related records? Could someone
please explain why this happens?

Thanks!!!!!!!!!!!!!

Re: Cascade Delete Related Records with code by Ronx

Ronx
Thu Aug 17 03:09:36 CDT 2006

You may be better posting this in an Access newsgroup or forum - unless you
are querying the database through ASP pages, in which case a subform is not
relevant. As stated, your problem is not FrontPage related.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

"Tom G." <TomG@discussions.microsoft.com> wrote in message
news:B4FD37C8-35F7-4F19-B6BF-33E5EF402D91@microsoft.com...
>I figure there must be a fairly standard way to handle deleting related
> records in different tables with code. I know you can set the Cascade
> Delete
> Related Records when setting up the relationship but I already have
> records
> in one table and not the other which keeps me from setting this now. I
> would
> think the perferred way to handle it with code anyway. Does anyone know
> of a
> bit of code that shows how to do it? Also I'm having trouble getting a
> sub
> form to work correctly when there are no related records in the sub form
> records. I want to be able to add the records thru the sub form but the
> form
> doesn't show up anywhere there are not already related records? Could
> someone
> please explain why this happens?
>
> Thanks!!!!!!!!!!!!!