Search results

  1. M

    Embedded form picture disappears

    Hi all, A switchboard at the front of my application has VBA code that opens a form and lets the user pick browse to a graphics file that should embed and appear on the switchboard menu. It all works o.k and the picture appears while the user has the database open. When you close and open the...
  2. M

    Form picture link BUG

    Hi all, I've got a little problem when users move through records on a form that has an image embedded the source of which changes for each record linked using a filename field and path in the database. The pictures are served across the network from another computer. Some of them are...
  3. M

    Linking just one Table

    Linking just one External Table to many databases I have created an Access database application that is stand alone for each account manager/client at our business except for one table that I want shared as a source of data across all separate databases that are created. I've investigated...
  4. M

    VBA SQL Word Mail Merge Problem

    It was the date format, and a few annoying brackets, the code below worked. On Error GoTo Error1 Dim strSQL As String Dim objWord As Word.DOCUMENT Dim Date1 As String Dim Date2 As String Date1 = DTPicker0 Date2 = DTPicker1 Date1 = Format(Date1, "m/d/yyyy") Date2 = Format(Date2...
  5. M

    VBA SQL Word Mail Merge Problem

    Hi all, I've got a form that lets a user select a date range between two dates and runs an automatic mail merge in Word. For some reason no matter which date range is chosen, it always selects all records in the query and not the range the user selects. Not sure why the problem occurs, may be...
  6. M

    Nested Field Code with Switch Problem

    Field code syntax is really annoying, after a bit of trial and error all that was missing was quotation marks around the nested fieldname. Code below {IF {MERGEFIELD Page_Number} <> 1 "" {MERGEFIELD "tbl_Coverage_Coverage_Date" \@ "MMMM YYYY" }"}
  7. M

    Nested Field Code with Switch Problem

    Hi all, I'm trying to nest a date formatted MERGEFIELD with a switch within an IF THEN ELSE word field code. The quotation marks are causing the IF field to think the data ends just after the \@ and doesn't complete the merge. Does anyone know how to get round this? Code below, any help...
  8. M

    Auto Mail Merge with TOC PROBLEM?

    Solved half the problem by creating a page number field in Access. Then in word I used an IF fieldcode in the template itself to compare whether the page number was <>1 and changed the headings based on that. {MERGEFIELD "tbl_Media_CompanyName"}{IF {MERGEFIELD Page_Number } <>1 " - continued"...
  9. M

    Auto Mail Merge with TOC PROBLEM?

    Hello all, I've been looking into Mail Merges from Access through VBA and after much messing got a basic mail merge working, but I want to be able to do a bit more with it, the only problem is I'm not sure if a mail merge can do what I want or whether I should be looking in another direction...
  10. M

    Date Problem

    Looks like another access quirk, if the month/year the user enters is in the same year as the system time the user can enter the date in MMM YY format and it works, otherwise the user has to enter MMM YYYY format for other years.
  11. M

    Date Problem

    hi all, I've got a form with a text box you can enter a date in mmm yy format, it works o.k if you enter any 06 date (e.g jun 06) but when you enter any other year 07 08 etc. it defaults back to 06 everytime. Not sure why this is happening. The underlying table has mmm yy as format type as well...
  12. M

    Any way to speed up form picture loading?

    Hi all, I've a form with an image on each page which is linked (not embedded) to filenames from another table. When moving through the forms the time it takes to import the picture is relatively slow, is there any method or hack I could use to speed this up? The code I'm using at the moment...
  13. M

    Mystery Overflow Problem

    Thanks guys, didn't realise all variable data types in an equation had to be able to handle the size of the result.
  14. M

    Mystery Overflow Problem

    Hi everybody, Getting an overflow error that i just can't fathom. Basically the code takes a string field tbl_Media_Page_Size (e.g. 297 x 210) and strips the left and right numbers into num1 and num2 then tries to multiply them. It always overflows whether I'm using integer, long, single or...
  15. M

    Query with Is Null returning Not Null Records

    Thanks Col, you saw through my confusing question and adding multiple Is Null criteria has worked in ridding the query of the Not Null entries. Is that a bug? Oh how can it be, Microsoft..........bug those words can't possibly go together ;)
  16. M

    Query with Is Null returning Not Null Records

    Hello all, A bit of a weird one, I've got a query and the criteria for showing records is that one particular field is null. However the query is showing records with the values in the field chosen for the Is Null. Not sure why this is happening, has anyone come across this problem before...
  17. M

    Selecting multiple records in a form and associating them to a record in another tabl

    OK my research has led me to thinking I should use a multiselect list box to put all the file names in so the user can select the ones they want to associate. Could I use a form with the primary magazine records and a subform within it with the multiselect listbox. The records could then be...
  18. M

    Selecting multiple records in a form and associating them to a record in another tabl

    Hi all, I've got a problem that I'm not sure how to go about solving, I've got a table that is full of jpeg filenames and paths that is created when a user selects to import them from a directory they specify. These jpegs are scans from various magazines that may include one to 50 pages all...
  19. M

    Importing Repeating Row Record Text File Data into ACCESS?

    Solved! Found out that I can set up a Long variable (iPos in this case) and pass the character number at which the space occurs to it using InStr function. iPos = InStr(1, stMediaCode, " ") stMediaCode = Left(stMediaCode, iPos)
  20. M

    Importing Repeating Row Record Text File Data into ACCESS?

    Thanks Peter that works a treat. Been looking into trimming down the text so only the relevant bits get put into the database. I've been able to use the trim, mid and left/right functions to chop out the crap before and after the fields so instead of this Name U78E-8 Computer Weekly...
Top Bottom