P
Patrick Jox
As far as I found out in the documentation it is possible to use unbound
forms. But I am having big trouble doing this.
What I do.
I have a subform (sfrFECNAME) designed as an endless form with one lable in
the form header and one textbox in the form details section. The form is not
bound RecourdSource is empty and the textbox control source is set to CNAME.
Then I create a new recordset that is filled manually
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
rst.Fields.Append "CNAME", adBSTR
rst.Open
rst.AddNew
rst!CNAME = "Hallo"
rst.Update
rst.AddNew
rst!CNAME = "Klaus"
rst.Update
Set Me.sfrFECNAME.Form.Recordset = rst
My form is used in a Form and in this form the code above is executed. Good
so far. When the form opens I see the records as added. Now the problems
start.
I can not add a new record. The i tab on the keyboard but nothingis
diaplayed.
I can change the existing entries. But when I click ENTER there is a
problem. Every entry changes to ?Name
What am I doing wrong.
Thanks for every hint!
Regards, Patrick
forms. But I am having big trouble doing this.
What I do.
I have a subform (sfrFECNAME) designed as an endless form with one lable in
the form header and one textbox in the form details section. The form is not
bound RecourdSource is empty and the textbox control source is set to CNAME.
Then I create a new recordset that is filled manually
Dim rst As ADODB.Recordset
Set rst = New ADODB.Recordset
rst.Fields.Append "CNAME", adBSTR
rst.Open
rst.AddNew
rst!CNAME = "Hallo"
rst.Update
rst.AddNew
rst!CNAME = "Klaus"
rst.Update
Set Me.sfrFECNAME.Form.Recordset = rst
My form is used in a Form and in this form the code above is executed. Good
so far. When the form opens I see the records as added. Now the problems
start.
I can not add a new record. The i tab on the keyboard but nothingis
diaplayed.
I can change the existing entries. But when I click ENTER there is a
problem. Every entry changes to ?Name
What am I doing wrong.
Thanks for every hint!
Regards, Patrick