Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: Command button that deletes a field

Status
Not open for further replies.

junior0090

Technical User
Nov 22, 2008
5
Hello I am new to all this and need help ,

I have a question that I have spent to much time researching. I want to add Pictures to my dbase and have found the solution on this site from this post " Now I

have 2 problems

1 the pictures will not update till I goto another record then come back to that one I would like them to update when I put the picture in

2nd I need to have a button to delete the picture to put a new one in basically delete a single field

Any help would be greatly appreciated thanks in advance
 
Hello Junior0090,

I am not sure what you mean by "update" with respect to your first question. Although, a Refresh command may work for this. You can test this by pressing F9 after you update a picture. If it changes, you can place the refresh command at the end of the code used to update the picture.

As for your second,

right-click the button in design view and choose properties.
Using the on-click event, enter an event procedure.

Field.Value = Null
or
Field.value = ""

Where field is the name of the field you are deleting.

You can also place a command under it so save the record if you wish.

Docmd.runcommand.accmdsaverecord

Hope this helps you
 
Thanks much CharlieT302 I will try it out I know I will have other questions and since I am a noob at this please bear with me if they seem not to bright
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top