I managed to do it, maybe a huge work around but It is working.
I created a update query to update the table with the value of an unbound text box with the default value.
then created a function with this code
Code:
DoCmd.SetWarnings False
DoCmd.OpenQuery "Query_Name"
DoCmd.SetWarnings True
Me.Requery
and in the macro I call the function.
I agree, macros aren't the way. but I was using the bottom wizard and changing the macros it gives.
I'm new to this, for me writing code takes forever. Specially testing if it work.
How did you manage to do it with the code you wrote?
Can you save the file and attach it here so I can see?
Thanks so much for all your help.
Without forums like this and people like you it would be impossible for guys like me to start on this adventure of scripting