Datagrids documentation

E

Eddi Rae

Is there any documentation on how to use the MS Datagrid in Access 2003?
I have never used this here and would like to know more about this.

Thanks!!
 
E

Eddi Rae

That is interesting. My situation is that I am already using continous
forms. What I need to have accomplished is that if my date on a record is
less than the current date, then I need that record to have the background of
the entire row changed and the record cannot be edited.

I am looking into the conditional formatting, but this may not be enough.

Could you help me find examples of what I am wanting?

Thanks!!
 
R

Rob Parker

Hi Eddi,

You can do what you want with a combination of conditional formatting and a
little VBA code.

Use conditional formatting to set the background colour for the row (each
cell in the row). In addition to that, use code similar to this, in the
form's Current event, to prevent edits (change fieldname to real one if it's
not RecordDate):
Me.AllowEdits = (Me.RecordDate = Date)

If you want to allow editing if the RecordDate field is null, use:
Me.AllowEdits = (nz(Me.RecordDate,Date) = Date)

And finally, if your RecordDate field contains a time component as well as a
date component, use:
Me.AllowEdits = (DateValue(Me!DateTimeAdded) = Date)
or
Me.AllowEdits = (DateValue(Nz(Me!RecordDate, Date)) = Date)

HTH,

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top