how can you bind a txtbox to its datafield without setting it in the property box,, using only pure code please help me,, thank you,,
binding txtbox to record sourcebinding using only code
Page 1 of 1
4 Replies - 1955 Views - Last Post: 07 October 2008 - 12:00 AM
Replies To: binding txtbox to record source
#2
Re: binding txtbox to record source
Posted 29 September 2008 - 07:17 AM
may i know why should you do like that
#3
Re: binding txtbox to record source
Posted 29 September 2008 - 09:45 AM
Text1.Datafield="student"
#4
Re: binding txtbox to record source
Posted 06 October 2008 - 03:03 PM
jencalma, on 29 Sep, 2008 - 04:24 AM, said:
how can you bind a txtbox to its datafield without setting it in the property box,, using only pure code please help me,, thank you,,
when you have a textbox 'tText' and field in a file called 'dData' you have to move the data to the textbox by writing tText.text = data2.recordset.fields("dData") every time you move in the file.
#5
Re: binding txtbox to record source
Posted 07 October 2008 - 12:00 AM
Quote
when you have a textbox 'tText' and field in a file called 'dData' you have to move the data to the textbox by writing tText.text = data2.recordset.fields("dData") every time you move in the file.
He is asking for binding
If you have a DATA control and you have a field name called "student", then you can bind the textbox using:
Text1.DataField="student"
Page 1 of 1

New Topic/Question
Reply


MultiQuote



|