I GOT IT!!!!!
here's what I've done... it's kinda a pain, cause I have to write the procedure for each of the fields I need this for but this works:
Private Sub block_size_AfterUpdate()
Me.block_size.DefaultValue = """" & Me.block_size.Value & """"...
would this work?
Public Sub AfterUpdate(fieldname As String)
Set Me.fieldname.DefaultValue = Me.fieldname.Value
End Sub
then I would call this procedure in the after-update event of each of the fields I need this for as
"AfterUpdate(length)" or "AfterUpdate(width)"...
Well, once I got it to stop giving me errors, it still didnt do anything. But... I have the code in the on_current event of the form. here's what I have:
Private Sub Form_Current()
If Me.NewRecord Then
Me.block_size = Me.block_size.OldValue
Me.length = Me.length.OldValue...
ok... just learning VB code... which is why I'm having trouble with this... I've figured out most of my other issues already.
I'm trying to make a form that when a value is changed, the default for that field changes to the value that was last entered.
sorry for the ignorance... but my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.