Update linked table

  • Thread starter Thread starter Peter Neumaier
  • Start date Start date
P

Peter Neumaier

Hi NG!

I am trying to update a linked table through an access form.

My form receives its data through a query (defined as "Record Source")
and contains a textfield. The current status is, that after updating
the textfield, my table gets only updated if I leave the form. I would
like to update the linked table after leaving the textfield.

What is the way to make that happen?

Thank you and regards,
Peter
 
put your code in the fields afterupdate event instead of the forms
afterupdate

Pieter
 
put your code in the fields afterupdate event instead of the forms
afterupdate

Pieter
 
If you use a macro, same thing applies (afterupdate or close)

HTH

Pieter
 
If you use a macro, same thing applies (afterupdate or close)

HTH

Pieter
 
how to update the table with the inserted data in the textfield, that's
all I need!?

regards
peter
 
how to update the table with the inserted data in the textfield, that's
all I need!?

regards
peter
 
In the AfterUpdate Event of the Control (Click builder icon .. /select Event
Procedure)

Private Sub Text1_AfterUpdate
On Error Resume Next
Me.Dirty = False
End Sub
 
In the AfterUpdate Event of the Control (Click builder icon .. /select Event
Procedure)

Private Sub Text1_AfterUpdate
On Error Resume Next
Me.Dirty = False
End Sub
 
i got a date of format mm/dd/yy in the textfield your code screws up
the whole format ...
 
i got a date of format mm/dd/yy in the textfield your code screws up
the whole format ...
 
no, but access does if your regional settings differ from mm/dd/yy (Access
then displays the data according to these settings)

Pieter
 
no, but access does if your regional settings differ from mm/dd/yy (Access
then displays the data according to these settings)

Pieter
 
sry, to avoid confusion, i probably didnt say it properly ....

access changes my date format to a time format?
 
sry, to avoid confusion, i probably didnt say it properly ....

access changes my date format to a time format?
 
change the format property to mm/dd/yy (should do the trick)

Pieter
 
change the format property to mm/dd/yy (should do the trick)

Pieter
 
doesnt work, after editing the textfield, the value jumps automatically
to 12:00 am
 

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


Back
Top