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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Elementry VBA Update

Status
Not open for further replies.

BJWink

Programmer
Jun 12, 2002
3
US
This may be a little insulting for some, but I don't know VBA and i'm on a deadline(its difficult enough to try and teach yourself VBA).

Given the table:

Cause of Death(cause_of_death)
(directly related to a fatality table.

On a form, Cause of death is a combo box with about 12 choices (including 'other')

Suppose the user chooses 'other' for cause_of_death. What code would you use that would prompt an update form linked to the Cause Of Death table.
 
Assuming cause_of_death is a string, something like:

if cause_of_death="Other" then
DoCmd.OpenForm "MyUpdateForm"
end if

You'd need ro requery the list at some point as well, if the user can update the table.

Douglas JL If it don't make you laugh, it ain't true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top