Nightowl4933
Tryin' to do it right...
- Local time
- Today, 06:59
- Joined
- Apr 27, 2016
- Messages
- 151
I have a form for users to enter data which is saved to a table, but the dta in one of the fields isn't being copyied over, and I can't see why.
tblApplications has these fields:
Location - (Data Type = Text, Field Size = 255, Format = @, Required = No, Allow Zero Length = Yes, Indexed = No, Unicode = No, IME Control = No Control, IME Sentence Mode = None and Text ALign = General)
Proposal - (Exactly the same as Location)
frmApplications has these fields
txtNewLocation and txtNewProposal, both of which are text fields, and I use the folllowing in the Click event procedure for the CommandButton:
Dim strNewLocation As Variant
Dim strNewProposal As Variant
...use these commands to get their respective values:
strNewLocation = txtNewLocation.Value
strNewPoposal = txtNewProposal.Value
...and then update the record using AddNew (having predefined everything) with the following lines:
rstTableName.AddNew![Location] = strNewLocation
rstTableName.AddNew![Proposal] = strNewProposal
Every field in the form is copied to the table, except txtNewProposal, and I really can't see why when every other field (and there are only 14 in total) does get copied . The value is definitely copied to the variable, as hovering the mouse cursor over it shows it's value.
Any ideas, please?
Thanks
tblApplications has these fields:
Location - (Data Type = Text, Field Size = 255, Format = @, Required = No, Allow Zero Length = Yes, Indexed = No, Unicode = No, IME Control = No Control, IME Sentence Mode = None and Text ALign = General)
Proposal - (Exactly the same as Location)
frmApplications has these fields
txtNewLocation and txtNewProposal, both of which are text fields, and I use the folllowing in the Click event procedure for the CommandButton:
Dim strNewLocation As Variant
Dim strNewProposal As Variant
...use these commands to get their respective values:
strNewLocation = txtNewLocation.Value
strNewPoposal = txtNewProposal.Value
...and then update the record using AddNew (having predefined everything) with the following lines:
rstTableName.AddNew![Location] = strNewLocation
rstTableName.AddNew![Proposal] = strNewProposal
Every field in the form is copied to the table, except txtNewProposal, and I really can't see why when every other field (and there are only 14 in total) does get copied . The value is definitely copied to the variable, as hovering the mouse cursor over it shows it's value.
Any ideas, please?
Thanks