opening in dataentry mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arali
    New Member
    • Jan 2008
    • 24

    opening in dataentry mode

    when I open my form it show me the frist recored i entered
    i am using Vb6
    How it shows new recored entry when i open a form
    just like this

    id:12 Name:.......... ..............

    address:....... ............... ..... Telephone:..... ............... .......

    Email:......... ............... ..........
    etc
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    Moved to the VB Forums where the resident experts can better assist you.

    **Moved from Programming Challenges.

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by arali
      when I open my form it show me the frist recored i entered
      i am using Vb6
      How it shows new recored entry when i open a form
      just like this

      id:12 Name:.......... ..............

      address:....... ............... ..... Telephone:..... ............... .......

      Email:......... ............... ..........
      etc
      Wat type of control you are using ADODC or ADODB or someother?

      Regards
      >> ALI <<

      Comment

      • arali
        New Member
        • Jan 2008
        • 24

        #4
        Originally posted by Ali Rizwan
        Wat type of control you are using ADODC or ADODB or someother?

        Regards
        >> ALI <<
        please tell me about both.

        Comment

        • CyberSoftHari
          Recognized Expert Contributor
          • Sep 2007
          • 488

          #5
          In form active event
          [CODE=vb]ADODC1.RecordSe t.MoveLast[/CODE]

          In form active event
          [CODE=vb]set objADODBrst = objCon.Execute( "Select Max(MYID) from TableName")
          objADODBrst.Mov eLast
          textName.Text = objADODBrst.Fie lds(0)[/CODE]
          Last edited by Killer42; Jan 16 '08, 06:32 AM. Reason: Change "forum" to "form".

          Comment

          Working...