Search results

  1. J

    Runtime error 13: Type mismatch

    maybe try making the function public and not private?
  2. J

    Open report in preview, save file as PDF on hard drive with custom name

    change DoCmd.Close acReport, "Overview", acSaveYes to DoCmd.Close acReport, "rpt_LTL Shipments for CS", acSaveYes
  3. J

    Open report in preview, save file as PDF on hard drive with custom name

    also make sure your report name is correct, if your report is named "rpt_LTL Shipments for CS" then you should be fine but if your report is named "LTL Shipments for CS" then you need to make it that. Not what it shows in the VBA editor but what it shows on the designer view.
  4. J

    Open report in preview, save file as PDF on hard drive with custom name

    ok try this Private Sub Command11_Click() DoCmd.OpenReport "rpt_LTL Shipments for CS", acViewPreview PrintToPDF ("rpt_LTL Shipments for CS") 'Dim olLook As Object 'Start MS Outlook 'Dim olNewEmail As Object 'New email in Outlook 'Dim...
  5. J

    Open report in preview, save file as PDF on hard drive with custom name

    copy your code into here so i can see it. Any time you see a sub or a function with parenthesis at the end such as in this example Function PrintToPDF(SrcFile As String) the stuff in parenthesis is called an argument, meaning you have to pass something to it, because the code is...
  6. J

    Copy data from webpage in MS Access Form

    either way here is a link that may or may not help http://www.access-programmers.co.uk/forums/showthread.php?t=176968
  7. J

    Copy data from webpage in MS Access Form

    why couldnt a user just highlight selected text on a webpage, then CTRL+C to copy, then CTRL+V to paste into your form?
  8. J

    Open report in preview, save file as PDF on hard drive with custom name

    This is the code i use to save a pdf to desktop. I save mine to here then open up outlook, send email in another code then delete the file back off the desktop. first on my button event DoCmd.OpenReport "Overview", acViewPreview PrintToPDF ("Overview") Dim year As String year =...
  9. J

    Understandind Relationships and queries

    thats exactly what i did before. i just always had to remember that if i deleted a customer that i would also have to manually delete jobs etc etc on down the line. I have it working fairly well with relationships however it doesnt cut down on my code as much as i thought it would. it def does...
  10. J

    Change image on button with code

    even though you use external images, they should still show up no matter who uses it, without having to use a zip file. Try it: set a form with an image (on a button, or image control) then open it on another pc, you should still be able to see the image without having the actual image file on...
  11. J

    Cascading Combo Boxes Access 2010

    First, if you have spaces in your field names then you must use brackets around them as shown below. I try to make it a habit of using brackets for all field names regardless. Second, is cboBillingCustomer text or a number?also check the spelling of CustmersExtended, is that supposed to be...
  12. J

    Change image on button with code

    odds are these are built into a dll somewhere and just from scanning the web a little on the the topic i dont think it will be an easy task. Why not download an icon pack from the web (there are literally millions out there) and utilize them. Heck you may be able to find an icon pack replica of...
  13. J

    Selecting a value in a combo box

    You will need to put the code under an event such as the on change or on exit event of the text box. Form_frmExpandAssembly.cboAssemblyID.value = Text23.value If your combobox is set to not allow edits or additions and also set to limit to list then if whatever is entered in the textbox...
  14. J

    get number of pages for ActiveReport??

    http://www.access-programmers.co.uk/forums/showthread.php?t=196521 try this
  15. J

    Understandind Relationships and queries

    this is def better. As with a lot of things it just takes some understaning. I like to be able to visualize what im coding and with Join SQL i have never been able to lol. Ive attached a screenshot of my relationships for you to look at if you have a spare moment. I have added 2 tables plainly...
  16. J

    Understandind Relationships and queries

    Thank you for the detail and the time it took to write it. Thats what ive been looking for. i actually saw that i had the branchid inside the jobsite table and inside the customers table and i removed it last week. It is no longer in jobsites. Tables are linked in this way Branch To...
  17. J

    Understandind Relationships and queries

    Actually the INSERT query is the problem of understanding. I know how to make tables related. In fact they are all related in a chain event to each other. What i never understood was how to link back to a table 3 of 4 tables deep. Hence the title of the post " Understanding Relationships and...
  18. J

    Understandind Relationships and queries

    still havent really figured it out, but this works. Just not sure if its the proper way to do it. I did try to go into the access query design but it produced this: INSERT INTO Customers ( CustomerName, BranchID ) SELECT Customers.CustomerName, Customers.BranchID FROM Branches INNER JOIN...
  19. J

    Understandind Relationships and queries

    i actually didnt see the last link until now. Ill read over it also
  20. J

    Understandind Relationships and queries

    i appreciate the link, however Im already aware of common SQL language, just not with appending into 2/3/4/5/6/7 related tables at once. I did read the joins portion and that explains some of the SELECT statements, but again no help with INSERT INTO
Back
Top Bottom