Delete Command Button - Continuous Form

CarolW

Registered User.
Local time
Today, 06:41
Joined
Mar 24, 2006
Messages
58
Good Evening,
I wonder if anyone could help me please.........
I have found Ghudsons attached ‘Browsing2’ example to be of enormous
benefit/use to me when I have been creating various Databases, however I was wondering whether Ghudson or any other kind person(s) would either show or point me in the right direction as to how to create a ‘Delete’ facility which is very similar to the ‘Open’ command button on the continuous form.

I have attempted to adapt the enclosed 'coding' to see if it will come up with the result that I want, but unfortunately I cannot!


Attachment kind courtesy of Ghudson
http://www.access-programmers.co.uk/forums/showthread.php?t=97787&highlight=browsing

Your help or assistance in this matter would be very welcome...........

Best Regards


CarolW
 

Attachments

Carol

I believe you are lookig to utilize the KILL function, here is an example:

Dim stPath As String

'Pass the parameter of your textbox to stPath

stPath = Me.txtOpenFile

If Dir(stPath) <> "" Then
Kill (stPath)
Else
End If
 
Last edited:
jfgambit said:
Carol

I believe you are lookig to utilize the KILL function, here is an example:

Dim stPath As String

'Pass the parameter of your textbox to stPath

stPath = Me.txtOpenFile

If Dir(stPath) <> "" Then
Kill (stPath)
Else
End If

jfgambit,
Many thanks for your quick response - sorry I couldnt reply as quickly?

One question for you and that is, exactly where and what do I do with that code.I have a command button on the form but Im still a learner at this kind of stuff and so haven't got a clue as to how to use your code and as to what it is trying to achieve via a short description.

Kind Regards

CarolW
 

Users who are viewing this thread

Back
Top Bottom