I'm not sure I completely understand, but maybe one of these two things will
help...
If you are trying to show a button visible only on a new record, scratch
that idea. Continuous forms don't allow for any "differences" (other than
data obviously) for each record.
If you want the button only to show when there is a previous record to copy
from (in the same form), then you can check the RecordCount property of the
Form's Recordset...
If Me.Recordset.RecordCount = 0 Then Me.MyButton.Visible = False
(or, if you like...)
Me.MyButton.Visible = Me.Recordset.Recordcount
If, by chance, you are creating a record in a continuous form that is a
subform and you mean "related" record by a record on the Main form, then
there may be a way to handle this as well. In your continous form, save your
form with the button visible property set to false... then, in the Current
and AfterUpdate events of the Main form, use some code to toggle the
visibility of the button...
If Me.NewRecord Then
Me.SubformControl.Form.MyButton.Visible = False
Else
Me.SubformControl.Form.MyButton.Visible = True
End If
I should note though, that copying "related" information to a subform (if
this happens to be the case) is probably a bad practice. It sounds like
maybe you're entering the same data twice (main and sub). There are some
cases (say an item master, to which you create an order that may have a few
differences) where this is ok, but mostly you want to avoid it.
Anyway, not sure exactly what the situation is, but maybe something I've
said will give you an idea or two...
hth
--
Jack Leach
www.tristatemachine.com
"I haven''t failed, I''ve found ten thousand ways that don''t work."
-Thomas Edison (1847-1931)