Results 1 to 6 of 6

Thread: daabase to textbox

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Smile daabase to textbox

    hi, i have this SQL command, i would like to know, if i can get the result in a textbox? or label? or send it directly to mail? how?

    Code:
    SELECT [InputID], [ResID], [DriverID], [Datee], [Timee], [Pax], [Fromm], [Too], [Orig], [Transfer], [ac], [Company], [Charges], [Hrs], [Pt], [Fees], [Stopp], [Grat], [Other], [Total], [Comments], [SentTo], [Email], [Saveas], [Month], [Aff], [Name] FROM [inputt] WHERE ([ResID] = @ResID)
    thx

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: daabase to textbox

    fill the tadatable using above query (from query seems return only 1 row) and assgin column value to textbox or label as

    Code:
    daAdapter.Fill(dtTable)
    
    txtInputId.text = dtTable.rows(0).Items("InputID")
    txtResId.text = dtTable.rows(0).Items("ResID")
    
    and so on...
    __________________
    Rate the posts that helped you

  3. #3

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: daabase to textbox

    i tgt maybe there was an easy way to do it, because i was using to send it via mail, name.text... . Isn't possible to send the table?

  4. #4
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: daabase to textbox

    you can directly send email from SQL server, thisArticle will help you.
    __________________
    Rate the posts that helped you

  5. #5

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: daabase to textbox

    checked but not sending, it will save it as queue, do i need to have the enterprise manager, currently i'm on the express

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: daabase to textbox

    You mean it's being saved in c:\inetpub\mailroot? Then you probably need to have SMTP installed on your machine or you need to specify, in your code, an SMTP server to use.

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