RE: Auto fill
- From: thom <thom@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Mar 2009 11:18:02 -0700
Thanks for your help, but I must be missing something.
I put the code in and still nothing.
here is what I have:
Private Sub txtReason_AfterUpdate()
If Nz(Me![txtReason], "") = "" Then
Me![txtReason] = "Active"
End If
End Sub
Am I missing something to easy here?
thom
"glconsultants" wrote:
thom,.
In the AfterUpdate event of the relevant field use the following code:
if nz(me.[fieldname] , "") = "" then
me.[fieldname] = "Active"
end if
This will ill the field with 'Active' if the field is blank or null.
Regards,
Graham
G & L Consultants
MSCAS - ACCESS 2007
thom wrote:
they want to insert "active" after the field is filled in.
thom
??? Do you want to assign it a default value "Active" so users will overwrite[quoted text clipped - 5 lines]
it if needed, or do you want it to insert "Active" in the field after the
Thanks
- Follow-Ups:
- Re: Auto fill
- From: John W . Vinson
- Re: Auto fill
- References:
- Auto fill
- From: thom
- RE: Auto fill
- From: Maarkr
- RE: Auto fill
- From: thom
- RE: Auto fill
- From: glconsultants
- Auto fill
- Prev by Date: Two Form Fields Reference The Same Table Field
- Next by Date: Inserting photo or image
- Previous by thread: RE: Auto fill
- Next by thread: Re: Auto fill
- Index(es):
Relevant Pages
|