dynamic creation folder while preview report

Ask a Question related to Microsoft Access, Design and Development.

  1. #1

    Default dynamic creation folder while preview report

    dear sir

    i wanted to create the folder of today date by default in c driver
    under c:\reports folder..i hve tried mkdir, dir with vbdirectory but
    did not success

    Private Sub cmdReport_Click()

    docmd.openreport "myreport",acpreview

    DoCmd.OutputTo acOutputReport, "myreport", _
    acFormatRTF, "c:\reports\myReport.rtf", False

    End Sub

    can anyone help me

    thks and rgds bye
    MUHAMAMD SALIM SHAHZAD Guest

  2. Similar Questions and Discussions

    1. Preview creation
      I noticed that with smaller files, 200KB or so, a preview is automatically created, whereas with larger files, 600 KB or more, no preview is created....
    2. one-click creation of low resolution copy for preview purposes
      Hi, I work in prepress and we quite often have to create lores-copies of the high res-pdfs to email to customers. Now I wonder if there is some...
    3. Folder creation
      Is it possible to create a folder on the server through the Contribute 3 interface?
    4. New Folder Creation
      Can someone point me in the right direction to find a simple script that will automate the creation of folders as needed? I've looked but can't...
    5. Folder creation up to an invalid path
      Hi This might be a strange problem...One of my folder has been recreated several times in to depth of its path and now i am unable to delete the...
  3. #2

    Default Re: dynamic creation folder while preview report

    MkDir works. You are probably trying to create a folder using the date
    format. This would contain illegal characters in the file / folder name.

    Try something like...
    MkDir "c:\reports\temp" & Format$(Date, "ddmmyy")

    --

    peter walker MVP

    Please post replies to the news group so everyone can benefit.
    [url]www.papwalker.com[/url]

    "MUHAMAMD SALIM SHAHZAD" <msssd786@yahoo.ca> wrote in message
    news:5a7850d5.0307012230.70349520@posting.google.c om...
    > dear sir
    >
    > i wanted to create the folder of today date by default in c driver
    > under c:\reports folder..i hve tried mkdir, dir with vbdirectory but
    > did not success
    >
    > Private Sub cmdReport_Click()
    >
    > docmd.openreport "myreport",acpreview
    >
    > DoCmd.OutputTo acOutputReport, "myreport", _
    > acFormatRTF, "c:\reports\myReport.rtf", False
    >
    > End Sub
    >
    > can anyone help me
    >
    > thks and rgds bye

    peter walker Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139