4 Replies - 1955 Views - Last Post: 07 October 2008 - 12:00 AM Rate Topic: -----

#1 jencalma   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 89
  • Joined: 13-July 07

binding txtbox to record source

Posted 29 September 2008 - 04:24 AM

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,,
Is This A Good Question/Topic? 0
  • +

Replies To: binding txtbox to record source

#2 thava   User is offline

  • D.I.C Lover
  • member icon

Reputation: 180
  • View blog
  • Posts: 1,607
  • Joined: 17-April 07

Re: binding txtbox to record source

Posted 29 September 2008 - 07:17 AM

may i know why should you do like that
Was This Post Helpful? 0
  • +
  • -

#3 akhileshbc   User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 179
  • Joined: 27-September 08

Re: binding txtbox to record source

Posted 29 September 2008 - 09:45 AM

Text1.Datafield="student"
Was This Post Helpful? 0
  • +
  • -

#4 jaakko   User is offline

  • New D.I.C Head

Reputation: 7
  • View blog
  • Posts: 21
  • Joined: 26-September 08

Re: binding txtbox to record source

Posted 06 October 2008 - 03:03 PM

View Postjencalma, 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.
Was This Post Helpful? 0
  • +
  • -

#5 akhileshbc   User is offline

  • D.I.C Head
  • member icon

Reputation: 9
  • View blog
  • Posts: 179
  • Joined: 27-September 08

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"
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1