Form controls

jamesd

Board Regular
Joined
Sep 22, 2003
Messages
220
I have a form that gets one piece of date from another form
text box=[Forms]![frm_loginandnextcount]![logonid]

How can I make this data wright to the underliying table
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
When you save the record (the BeforeUpdate event of the form), put in code like:

Code:
Me.[My field name]=Me.[My text box]

You could also set the save routine to only write the value for a new record:

Code:
If Me.NewRecord Then
    Me.[My field name]=Me.[My text box]
End If

Denis
 
Upvote 0
Have you displayed the other field to see if it has data?
And, if you are expecting the calculated text box to show the data from that field, it won't. It's an unbound control, with an expression pointed at a different data source.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top