Skip to Content
author's profile photo Former Member
Former Member

Feel a combobox wit a Query

Hi all:

I want to feel a combobox with the result of a Query, but I can't get the result when I feel it, can any one help me pls.

Here is the code:

dim oprom as sabbouicom.combobox

oRecordset.DoQuery ("SELECT PrjName,PrjCode From OPRJ ")

Set oprom = oForm.Items.Item("11").Specific

oprom.DataBind.SetBound True, "OPRJ", "PrjName"

If oRecordset.RecordCount <> 0 Then

oprom.ValidValues.Add(.Fields.Item("PrjName").Value, .Fields.Item("PrjCode").Value)

End If

End With

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2004 at 04:56 PM

    Sorry for my post, I wrote it wrong, "Feel a combobox wit a Query", it was fill a combobox with a Query

    My problem has solved thank's any way

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.