CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    9

    Label.Caption way...?

    Hello, I'm new in VB programming and I need some help.

    I have a Access database Base.mdb with some tables: table1, table2,... In this tables are some data with ID's (not autonumber).
    OK...
    On the Form I have some Text boxes and some label's with blank Caption. Each TextBox has his own label.
    Now I would like to type in this TextBox ID, press Enter and the Label.Caption would be the data for that inserted ID.

    When I would selected all data I would press Save button and the data in Label's must be saved in another database Base1.mdb.

    Anyone know some code sample for that?

    Sorry for my bad English..

    Thank you...

  2. #2
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    Use the OnChange event

    Label1.Caption = Text1.text
    Be nice to Harley riders...

  3. #3
    Join Date
    Oct 2003
    Posts
    9
    Yes, but I want to call the data from database. Each Id has his own data. What is the connection for that and SQL?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured