Results 1 to 2 of 2

Thread: Combo Boxes

  1. #1
    Guest
    I'm clueless on why this won't work. Here is the situation. I have 2 forms. The one form is for adding a new company to the database and the other is where we subtract support time from there hours. I'm using this code here

    TimeSheet.cmbCmpName.AddNew = txtCompany.Text

    txtCompany.text is on the add new company form. When you add a new company I want that company added to the combo box on the TimeSheet form. Why won't this work?




  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    I think you have the syntax all wrong

    Try
    Code:
    TimeSheet.cmbCmpName.AddItem (txtCompany.Text)
    Iain, thats with an i by the way!

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