13 databases on one control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ali Rizwan
    Banned
    Contributor
    • Aug 2007
    • 931

    13 databases on one control

    Hi
    I want to fetch databases according to class no using one control.
    I have done it but sometimes an error has occured. I have used this code in change property of txtbox

    adodc1.commands tring=Jet Provider + database name ...

    is there anyone better
    Thanx
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    Write the Code in txtClass_Valida te or txtClass_LostFo cus Event of the Text Box. If u write in Change Event, It keeps on Opening the DB for every key press.. better Give a ListBox of All the available Classes, and write code in LostFocus of ListBox

    Regards
    Veena

    Comment

    • Ali Rizwan
      Banned
      Contributor
      • Aug 2007
      • 931

      #3
      Originally posted by QVeen72
      Hi,

      Write the Code in txtClass_Valida te or txtClass_LostFo cus Event of the Text Box. If u write in Change Event, It keeps on Opening the DB for every key press.. better Give a ListBox of All the available Classes, and write code in LostFocus of ListBox

      Regards
      Veena
      Thanx for reply.
      I m using combo box also but the problem is in updating data. It occurs an error of
      "Multiple steps occurs errors" some thing like this.
      otherwise databses are opening properly.

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi,

        "Multiple Step Generation Error" is usually due to the Change in Datatypes in DB and front end, It can occur in such Conditions:

        IN DB Text Length is 10 and u r trying to save string Length >10
        In DB, Field is a Date Field, u r trysing to save a Non-date Field
        OR it is of Integer and u r trying to store value>32k
        Or else, there is a Violation of Foreign/Primary Key

        Regards
        Veena

        Comment

        • Ali Rizwan
          Banned
          Contributor
          • Aug 2007
          • 931

          #5
          Originally posted by QVeen72
          Hi,

          "Multiple Step Generation Error" is usually due to the Change in Datatypes in DB and front end, It can occur in such Conditions:

          IN DB Text Length is 10 and u r trying to save string Length >10
          In DB, Field is a Date Field, u r trysing to save a Non-date Field
          OR it is of Integer and u r trying to store value>32k
          Or else, there is a Violation of Foreign/Primary Key

          Regards
          Veena
          Thanks Veena
          I checked and foun i am trying to enter string in integer format field.
          Thanx again

          Comment

          Working...