D
David
Hi there
I need help to assign a delete query to a command button
on a form!
I need help to assign a delete query to a command button
on a form!
David said:Hi there
I need help to assign a delete query to a command button
on a form!
-----Original Message-----
Well, in VB this works:
db.Execute ("DELETE FROM students WHERE studentCode = 'somecode'")
Of course DB is the name *I* chose in my program for the database
connection. I have no idea what name Access uses for it's own self
generated forms, and I've spent some amount of time trying to find out!
Adrian
.
Hmmm, thanks Adrian for the reply.
However, my problem gets a bit more complicated now. I've
designed a delete query and it works fine, but i want to
put that query on a form...somehow. I tried assigning it
to a command button, but it won't let me select the
delete query. I was thinking maybe Access won't let u
put a delete query on a form???