Crystal,
Well, that's quite a bit different than your first post... and information as to *
how
and where * you get [AMStaticTestRawFileName] would have been helpful.
I'll have to assume that [AMStaticTestRawFileName] is on that same form...
Your string is not storing in the table because the field you have on the form now
is
an "unbound calculated" field, and unassociated with any table field.
The ControlSource for that field should be the table fieldname (ex. name
[MyFileName])
that will actually store that value.
If you enter [AMStaticTestRawFileName] on the form, then use the AfterUpdate event
of
that field to set the value of the [MyFileName] "bound" field.
Private Sub AMStaticTestRawFileName_AfterUpdate()
MyFileName = AMStaticTestRawFileName & " Processed.xyz"
End Sub
--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
In the form, I set the control source to =[AMStaticTestRawFileName] & " " &
"Processed.xyz". This works fine and the info fills in when I run the form.
The only problem is that the information in the table doesn't update. It's
still blank. Any suggestions?
:
Crystal,
I'm assuming the 0807 is Month and Day.
You could set the Default Value for the field to...
=Month(Date()) & Day(Date()) & "SA1.xyz"
Every day when you create a new record, that field will be eneterd by Default.
You really should include the Year too. (080706SA1.xyz) Next year there will be
a
duplicate 0807SA1.xyz value assigned.
Adding the year will prevent any dupes.
--
hth
Al Campagna
Candia Computer Consulting - Candia NH
http://home.comcast.net/~cccsolutions
I have a form where lots of information is entered by date. An entry would
look like "0807SA1.xyz". This information is entered every day and the only
part that changes is the date. Is there a way that the fields update
automatically where just the date changes?