+ Reply to Thread
Results 1 to 2 of 2

Displaying results of an SQL query in a Textbox

  1. #1
    Registered User
    Join Date
    06-29-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    8

    Displaying results of an SQL query in a Textbox

    Hi All

    I've got a form where I'm trying to display the results of an SQL query in a textbox by clicking a button. See code below that I'm trying but doesn't work, not geting an error messages the result just isn't displaying in Text51 when I Click the FindCommission_Ref button. The result I want is the Comissioning_Ref from the Comossioning table and will be got from 2 comboboxes(Combo27 & Combo31) where Commissioning.Doc_Ref = Commissioning.Vehicle_No

    Please Login or Register  to view this content.
    Any help would be much appreciated on this

    Donal
    Last edited by pike; 07-05-2010 at 09:11 AM. Reason: add code tags for newbie mp message

  2. #2
    Registered User
    Join Date
    03-20-2008
    Location
    Buffalo, NY USA
    Posts
    43

    Re: Displaying results of an SQL query in a Textbox

    You could use a Domain Aggregate function:

    I'm not sure what data type your combos are (Combo27 and Combo31), so if they are text use:
    Please Login or Register  to view this content.
    If they are numeric use:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1