How to remove record from specific table? (1 Viewer)

behedwin

New member
Local time
Yesterday, 17:35
Joined
Nov 15, 2017
Messages
9
I have a one-to-one relationship between Profile_ID and Time_ID

I have a form where i want a button to delete the record in Time_Table
But keep the record in Profile_Table.

What VBA code to put on a button to delete the record in Time_Form where i display data from both Profile_Table and Time_Table.
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 17:35
Joined
Aug 30, 2003
Messages
36,125
Along the lines of:

CurrentDb.Execute "DELETE * FROM Time_Table WHERE Time_ID = " & Me.Time_ID
 

Users who are viewing this thread

Top Bottom