Click here to Skip to main content
16,003,319 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralException of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' Pin
phoopwint26-Dec-07 22:04
phoopwint26-Dec-07 22:04 
GeneralRe: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' Pin
Dave Kreskowiak27-Dec-07 12:45
mveDave Kreskowiak27-Dec-07 12:45 
GeneralI need help from one and all in the VB6 regarding making data in the datagrid editable and then saving that in the database either Access, Oracle or MySQL Pin
Keshav Singh Sunwar26-Dec-07 21:08
Keshav Singh Sunwar26-Dec-07 21:08 
GeneralRe: I need help from one and all in the VB6 ... and then saving that in the database either Access, Oracle or MySQL Pin
Paul Conrad27-Dec-07 7:31
professionalPaul Conrad27-Dec-07 7:31 
GeneralRe: I need help from one and all in the VB6 ... and then saving that in the database either Access, Oracle or MySQL Pin
Keshav Singh Sunwar27-Dec-07 20:24
Keshav Singh Sunwar27-Dec-07 20:24 
GeneralRe: I need help from one and all in the VB6 ... and then saving that in the database either Access, Oracle or MySQL Pin
Paul Conrad28-Dec-07 13:00
professionalPaul Conrad28-Dec-07 13:00 
GeneralRe: I need help from one and all in the VB6 regarding making data in the datagrid editable and then saving that in the database either Access, Oracle or MySQL Pin
Dave Kreskowiak27-Dec-07 12:44
mveDave Kreskowiak27-Dec-07 12:44 
GeneralNeed Help Pin
BOREC26-Dec-07 20:34
BOREC26-Dec-07 20:34 
I am using VB 2005. trying to create wilcard parameter search. I don't know how to connect variamble Name to the one using in SQL statements.

SQL lines in Query builder:

SELECT     ID, Ime, Priimek, [Službeni telefon], [Službeni GSM], [Domaci telefon], [Privatni GSM], [Elektronska pošta], [Domaci naslov]<br />
FROM         SLUŽBA<br />
WHERE     (Priimek LIKE '%' & '@NAME' & '%')


And in Form2 I have this code inside button1 object:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        Dim NAME As String<br />
<br />
        NAME = TextBox1.Text<br />
<br />
        <br />
        Try<br />
            Me.SLUŽBATableAdapter.FillBy2(Me.TelefonskiImenikDataSet.SLUŽBA, NAME)<br />
        Catch ex As System.Exception<br />
            System.Windows.Forms.MessageBox.Show(ex.Message)<br />
        End Try<br />
    End Sub


can anyone tell me what is wrong here and correct the code, please.I've b een researching a lot and don't find a proper solution. Please Help. The builder doesn't report any error but the button doesn't do a query parameter wildcard search. Variable NAME is underlined with green waveline.It says too many arguments to function FillBy2.
GeneralRe: Need Help Pin
Colin Angus Mackay27-Dec-07 0:04
Colin Angus Mackay27-Dec-07 0:04 
GeneralRe: Need Help Pin
BOREC27-Dec-07 0:51
BOREC27-Dec-07 0:51 
GeneralRe: Need Help Pin
darkelv27-Dec-07 1:00
darkelv27-Dec-07 1:00 
GeneralRe: Need Help [modified] Pin
BOREC27-Dec-07 1:42
BOREC27-Dec-07 1:42 
GeneralRe: Need Help Pin
Colin Angus Mackay27-Dec-07 2:04
Colin Angus Mackay27-Dec-07 2:04 
GeneralRe: Need Help Pin
BOREC27-Dec-07 2:12
BOREC27-Dec-07 2:12 
GeneralRe: Need Help Pin
leckey27-Dec-07 4:51
leckey27-Dec-07 4:51 
GeneralRe: Need Help Pin
Benny_Lava27-Dec-07 22:45
Benny_Lava27-Dec-07 22:45 
GeneralRe: Need Help Pin
TomGarth28-Dec-07 8:53
TomGarth28-Dec-07 8:53 
GeneralLoading Resources in VB 6.0 Pin
anu_sam77726-Dec-07 20:01
anu_sam77726-Dec-07 20:01 
GeneralRe: Loading Resources in VB 6.0 Pin
Dave Kreskowiak27-Dec-07 12:41
mveDave Kreskowiak27-Dec-07 12:41 
QuestionUsing Crystal Control in VB.net As VB6 Pin
Meenge26-Dec-07 17:29
Meenge26-Dec-07 17:29 
GeneralRe: Using Crystal Control in VB.net As VB6 Pin
Paul Conrad30-Dec-07 10:44
professionalPaul Conrad30-Dec-07 10:44 
QuestionVB.net, Web Services and Soap Pin
Brit the Brut26-Dec-07 16:52
Brit the Brut26-Dec-07 16:52 
GeneralRe: VB.net, Web Services and Soap Pin
Dave Kreskowiak27-Dec-07 12:38
mveDave Kreskowiak27-Dec-07 12:38 
Generalneed help selecting rows in a DataGridView Pin
Shimmy Weitzhandler26-Dec-07 15:42
Shimmy Weitzhandler26-Dec-07 15:42 
GeneralRe: need help selecting rows in a DataGridView Pin
helelark12326-Dec-07 19:27
helelark12326-Dec-07 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.