Displaying Updated Information

G

Guest

I have added a command button to my form to update (editable) address
information from one table to another. The button "works", but does not
appear to work because the display does not change. I have to close and
reopen the record to get the data to display.

Can someone suggest what code I need to add at the end of the procedure to
get the data to display? I understand that DoCmd.Save doesn't work and I
tried the RePaint function.

Lloyd

If IsNull(Forms![frmGrantSumDE].[tblGrantSum.LocalContact]) Then
[Forms]![frmGrantSumDE].[tblGrantSum.LocalContact] =
[Forms]![frmGrantSumDE].[tblGrantee.LocalContact]
End If
If IsNull(Forms![frmGrantSumDE].[tblGrantSum.LocalContactTitle]) Then
[tblGrantSum.LocalContactTitle] =
[Forms]![frmGrantSumDE].[tblGrantee.LocalContactTitle]
End If
DoCmd.RepaintObject acForm, "frmGrantSumDE"
 
R

Rob Oldfield

Can't see exactly what you're trying to do, but you might look at the
requery and refresh commands.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top