Search results

  1. R

    Run-time error '3075': Syntax error in (comma)

    Hello All, I am attempting to insert a record with selected data into a temp table and I am getting "Run-time error '3075': Syntax error in (comma)...". Here is the code: Private Sub XferDataToTempTable() Dim db As Database Dim strSQL As String Set db = CurrentDb strSQL = "INSERT INTO...
  2. R

    Run-time error '1004' : Microsoft Excel cannot access the file ...

    I have a form that outputs data to an excel templete. I built and tested it on my machine, and it works just fine. When I attempt to change the syntex to a network drive I get the run time error. Public Sub CreateSpreadsheet() Dim RecSet As Recordset Dim MyExcel As Excel.Application Dim...
  3. R

    Form field not validating

    I have an inventory form where I have To and From fields (moving a device From somewhere To somewhere else). I have an unbound search field that sets up the form, and in the AfterUpdate I some house cleaning by moving the current To values to the From values, then clearing the To values with...
  4. R

    Extra records added to table

    My intent with the code below is to copy the Me.Serial value into the hostname, than check the Me.Serial value and if it begins with PDS, strip that off and write the new number as Me.Serial. What happens is I get two record sets in my table - one that has no Me.Serial and the hostname, the...
  5. R

    Insert Into Table brings up Parameter Value popup

    I'm having difficulty with an Insert Into - I have the following code: Private Sub Serial_AfterUpdate() Dim MyDB As Database Dim hostname As String Set MyDB = CurrentDb hostname = Me.Serial DoCmd.RunSQL "INSERT INTO tblTemp (tmptoHostname) VALUES (" & hostname & ")" If Me.Serial...
  6. R

    Function value into table

    Hello All, I am having the worst time trying to figure out something that is so simple - but I just cant seem to get it. I have a function that grabs the user name; I am trying to use that value as data for some fields. I just cant figure out how to write that data into a record. This is what...
Back
Top Bottom