Search results

  1. A

    Error 3828 when creating a CSV from a query

    The tempvar is working, as after clicking the button to do the csv, I can close the job form, run the query and it knows the jobID without prompting. Private Sub XeroExport_Click() Dim Filename As String Dim Filepath As String Dim queryname As String queryname =...
  2. A

    Error 3828 when creating a CSV from a query

    Ive tried TempVars("jobid") = JobID.Value and changing the WHERE to WHERE Job.JobID= [Tempvars]![jobid] Back to original error
  3. A

    Error 3828 when creating a CSV from a query

    SELECT "INV" & Format([JobID],"00000") AS InvoiceNumber, Customers.CustomerName AS Contact, Job.OrderNo AS Reference, Job.DateShipped AS InvoiceDate, "" AS DueDate, Job.SalesNotes AS Description, 1 AS Quantity, Job.Labour AS UnitAmount, 200 AS AccountCode, "20% (VAT on Income)" AS TaxType...
  4. A

    Error 3828 when creating a CSV from a query

    I tired the concatenate WHERE but it doesn't like it and won't save, (missing operator)
  5. A

    Error 3828 when creating a CSV from a query

    Sorry to be a nuisance, I'm a bit new to this, How do I adjust the query to concatenate the form control value? Alternatively where do I call that function?
  6. A

    Error 3828 when creating a CSV from a query

    OK I got this to work. I had to remove from the query the criteria that makes it only display the current job ID that the form is on. It then output the CSV perfectly (albeit without a filename but I can sort that) and as the criteria was removed it contained every JobID I will use this...
  7. A

    Error 3828 when creating a CSV from a query

    I've called that sub with the queryname and filename and get 3061 Too few parameters expected 1 Debug is at this line Set rs = db.OpenRecordset(SourceName, dbOpenSnapshot) Sourcename = XeroCSVQuery dbopensnapshot = 4
  8. A

    Error 3828 when creating a CSV from a query

    Can you manually create a new spec and test using that new spec? I'm trying to eliminate a certain type of corruption. Either it works or it doesn't - but if it works, you're back in business and if not, the problem is not likely to be corruption in the I/E spec. Sorry please could you explain...
  9. A

    Error 3828 when creating a CSV from a query

    Sorry for the delay been a busy morning I exported the query to excel without issue. I didn't even think about the attachment fields being multi value. I will try recommended steps
  10. A

    Error 3828 when creating a CSV from a query

    I've also deleted all the fields which do not exist in the database and kept it to just invoice number, unit amount and contact and it still errors.
  11. A

    Error 3828 when creating a CSV from a query

    The fields do not exist in the database, the query creates these just for the purpose of the csv. I couldn't think of another way to do this?
  12. A

    Error 3828 when creating a CSV from a query

    Tell me about it! The query runs fine (when given the job ID) The VBA code was copied straight from another form which creates a csv from a query and works great. The only thing I changed was the query name and filename prefix. Baffled!
  13. A

    Error 3828 when creating a CSV from a query

    Hi, Absolutely no MVF in any parts of my database.
  14. A

    Error 3828 when creating a CSV from a query

    Quantity is purely assigned 1 as it is always 1, its 1 invoice line.
  15. A

    Error 3828 when creating a CSV from a query

    Hi, Can anyone help identify where the issue is here. I've created a query to pull job data to create a CSV to export to Xero which will automate invoicing my jobs. The query runs fine on its own and displays everything I need correctly. Some fields are "" as Xero requires them present as a...
  16. A

    Autocomplete Combo Enter/Tab behaviour

    Hi I have a field on my form called Manufacturer which was a standard text box. I decided to change it to a combo box with a row source as: SELECT DISTINCT Manufacturer FROM Job ORDER BY Manufacturer It works great, and suggests manufacturers whilst typing which is exactly what I wanted it to...
  17. A

    Open a form and insert data SQL

    Hi, Just an update I decided to develop this further. Rather than clicking a button and it opening the main form at a new record with prefilled data from code, I decided to firstly open a small form which asks for key required data - customer, contact, description, ref etc and upon a button...
  18. A

    Open a form and insert data SQL

    That works, thank you!
  19. A

    Open a form and insert data SQL

    I've tried that but still nothing. I've tried setting default customer and contact ID's to 1 but no change When the form loads its like its not created the record yet as everythiing is blank including the autonumber and the check boxes are all ticked, once you click into a field an autonumber...
Back
Top Bottom