Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    2

    Unanswered: error 3078 in db-help

    Hi I'm using Access to develop e database, when i wrote a code in combobox to add a name which does not exist in list it displays me a message 3078 the microsoft Jet database engine cannot find the input table or query.
    here is the code for the combo box

    Dim strs As String
    Dim im As Integer
    Dim Msg1 As String


    If NewData = "" Then Exit Sub

    Msg1 = "'" & NewData & "' messgae here." & vbCr & vbCr
    Msg1 = Msg1 & "question to add?"



    im = MsgBox(Msg1, vbQuestion + vbYesNo, "Tittle...")
    If im = vbYes Then
    strs = "Insert Into tbl ([field1]) values ('" & NewData & "')"
    'MsgBox strs
    CurrentDb.Execute strSQL, dbFailOnError
    Response = acDataErrAdded
    Else
    Response = acDataErrContinue
    End If

    Me.field1.Requery

    Who can help me for this

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Insert Syntax:
    Code:
    INSERT INTO <TableName>(<Field1Name>, <Field2Name>, ... , <FieldnName>)
    VALUES ('Val1', 'Val2', ... , 'Valn')
    And
    Quote Originally Posted by dbakps
    im = MsgBox(Msg1, vbQuestion + vbYesNo, "Tittle...")
    *giggle*
    George
    Home | Blog

Posting Permissions

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