>I am a student at a university.
>
>I am running an experiment that will be run over many years by many
>users. The experiment is calibrated roughly once a week. I set up a
>key index for the calibration table, so first record is 1, next record
>is 2, etc....
>There will be dozens of experiments run each week. Those are going to
>have different fields. I want the fields that are the same as in the
[quoted text clipped - 4 lines]
>for record three, I change it to 20 Torr, I want 20 Torr filled in for
>record four. Basically, a dynamic default value.
> Is this an Autonumber field, or are you incrementing it yourself (manually or
> in code)?
Yes, it is an Autonumber.
> You can do this with a little bit of VBA code in the Form (and yes, you must
> use a form to do this; tables don't have any usable events).
I have not yet had the chance to learn Visual Basic.
> In each such control's AfterUpdate event set the control's own DefaultValue
> property:
>
> Private Sub txtPressure_AfterUpdate()
> Me!txtPressure.DefaultValue = Me.txtPressure
> End Sub
I am not entirely sure of what this means. is a "control" a field in
the form?
Is there an ability to post a screen shot? If not, my e-mail address
is yakleo3@yahoo.com.
Thank you for all your help.
John W. Vinson [MVP]
John W. Vinson - 20 Jun 2007 17:53 GMT
>> Is this an Autonumber field, or are you incrementing it yourself (manually or
>> in code)?
[quoted text clipped - 5 lines]
>
>I have not yet had the chance to learn Visual Basic.
For this, all you need to do is type one line. Change the txtPressure below to
the actual name of the form control.
>> In each such control's AfterUpdate event set the control's own DefaultValue
>> property:
[quoted text clipped - 5 lines]
>I am not entirely sure of what this means. is a "control" a field in
>the form?
Tables have Fields. Forms have Controls (such as Textbox controls, Combo Box
controls, Listbox controls...) which are bound to fields in the table or the
query. Forms don't have "fields" - what you see is a Control, a tool which can
be used to update a field.
>Is there an ability to post a screen shot? If not, my e-mail address
>is yakleo3@yahoo.com.
Posting binaries is neither necessary nor appropriate; and private EMail
support is reserved for paying customers. I'm a self employed consultant
donating time on the newsgroup (like everyone who answers here); I must
regretfully limit personal support.
Just try what I suggested.
John W. Vinson [MVP]