Filename not correct

hi,
I'm using a code where I'm trying to get the filenames of previous databases from a folder named 'BE' into a combo box as list.
The files name are :
Data1213.accdb
Data1314.accdb
and so on. But I'm getting only "Data" not "Data1213.accdb".
Code:
====================
Dim fso As New FileSystemObject, sFile As Scripting.File
Dim sourceFolder As Scripting.Folder
Set sourceFolder = fso.GetFolder(CurrentProject.Path & "\BE")
For Each sFile In sourceFolder.Files
    If right(sFile, 6) = ".accdb" And DCount("*", "tblDbase", "fileName = '" & sFile & "'") = 0 Then
    DoCmd.SetWarnings False
    CurrentDb.Execute "Insert Into tblDbase(filename) Select '" & sFile & "'"
End If
Next
   DoCmd.SetWarnings True
====================
Note: The same code was working in Access 2003 but not in Access 2013. I don't understand. Please guide....
Thanks & Regards, Anuj Mehrotra

Why insert values into a table rather than directly into the combo box's list? e.g. in the form's Open event procedure:
    Dim ctrl As Control
    Dim strFileName As String
    Set ctrl = Me.YourComboBoxName
    strFileName = Dir(CurrentProject.Path & "\BE\*.accdb")
    With ctrl
        .RowSourceType = "Value List"
        .AllowValueListEdits = False
        Do Until Len(strFileName) = 0
            .AddItem strFileName
            strFileName = Dir()
        Loop
    End With
Ken Sheridan, Stafford, England

Similar Messages

  • Transferring files from Windows, names of songs not correct in iTunes

    so I have my music on an external hard drive from my windows machines. The songs 'file names' (what you see on the HD) are correct. When I tried to bring some over to iTunes, via add to library, the info was added as 'Track 1" ect, with no artist or album info. In the itunes music folder, it was sorted as the artist folder (I copied and pasted from my HD)...
    I also tried to 'import' from itunes, and still the info was not correct.. when I tried the advance button to get cd info, itunes told me I couldn't do it because i didn't import with itunes, even though I did import from the external HD with itunes....what is going on? Does the 'get track listings' onlyl work if you are importing CDs?
    Also since itunes just looked at the files as 'track 1' etc, that means the MP3 file did not have the correct tags, so I have re-enter everything? That the files I was seeing was just the names I gave the MP3? Does this mean I have to go back and enter the correct info for all those mp3 that itunes read as "track 1" "track 2" etc?
    TIA
    new macbook   Mac OS X (10.4.7)  
    new macbook   Mac OS X (10.4.7)  

    It sounds like the artist and track names are part of the file name and your Windows player was grabbing that info from the track names. iTunes does not use file names to supply such information and instead uses standard internal tags to hold this information and when you imported the tracks into iTunes it supplied some default info. You will need to edit the tags using a tag editor, such as the one built into iTunes or an external one such as can be found on VersionTracker.
    Gracenote lookups can only be done on tracks and albums that were directly imported by iTunes from the original CD. Importing music files from any other source cannot be looked up.
    If you still have access to a Windows machine, you could try running the files through MusicBrainz using Magic MP3 Tagger. I have not had much luck identifying taggless or unknown songs using iEatBrainz for the Mac (these programs are available on MusicBrainz).
    There are some scripts in the Managing Track Info section of Doug's AppleScripts for iTunes that will copy filenames to track tags that can automate converting filenames to tags, but there are limitations on what can be done and you will still need to manually clean up the data and to add tags that cannot be added using such a script.

  • Javax.mail attachment not correctly encoded

    Hi,
    I have developed an online auction system which, has a function to generate invoices using the iText libraries.
    The invoices are stored as a ByteArray in a database and are mailed to the customer. This works find when running
    the application within my IDE (Netbeans) on Mac OS X and Apache Tomcat 6.0.29 and javamail 1.4.3. When running the application on
    Windows 2003 Server with same tomcat and javamail version the attachment is not readable on the client.
    The attachment is added to the e-mail using the following code;
    // Part two is the attachment
    messageBodyPart = new MimeBodyPart();
    messageBodyPart.setFileName(attName) ;
    messageBodyPart.setDataHandler(new DataHandler(new ByteArrayDataSource(attachment,attContType)));
    multipart.addBodyPart(messageBodyPart) ;
    The raw e-mail of the attachment when it is correctly encoded (running from my IDE)
    Content-Type: application/pdf; name=factuur_656.pdf
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=factuur_656.pdf
    JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9MZW5ndGggMzM2L0ZpbHRlci9GbGF0ZURlY29kZT4+
    c3RyZWFtCnicjZPBboJAEIbvPMXcbBPEmd1lWXpr0/bWpFYOvTWoa0WQVUQPPfmofZQuaFGCNg0J
    gfDtfP+fCWvnIXK4BIUSoqnzFDlDZw0EaK/DfbKEwfuM4NHAsIIHzwQkIJo5vxQJCTIIIFo6Nztd
    pGYyLz8QUfryNlo0GA+owSjsE/UZEp4TPp4IpAFS9bHr4wi+UjVllpvJvEgWuyT/bLlk4KFqsDqV
    WcHKopu2MfTUiUvNptT5wcouWCWrsbgok1RnIIUL0Hvbjse60DlkcVx86bx3LhCoPN4c3AMjF9ud
    SdZJG8IC/vUEQnUTjF5GcJ/pooRDfuBgAyV2C/b5G/aALl10HodVAMfrTi7aTr9q/Vq9LsBspxrG
    And again when encoded from the server
    Content-Type: application/pdf; name=factuur_656.pdf
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename=factuur_656.pdf
    JVBERi0xLjQKJeLjz9MKNCAwIG9iago8PC9MZW5ndGggMzM2L0ZpbHRlci9GbGF0ZURlY29kZT4+
    c3RyZWFtCnicP5PBboJAEIbvPMXcbBPEmd1lWXpr0/bWpFYOvTWoa0U/VUQPPfmofZQuaFGCNg0J
    P/DtfP+fCWvnIXK4BIUSoqnzFDlDZw0EaK/DfbKEwfuM4NHAsIIHzwQkIJo5vxQJCTIIIFo6Nztd
    pGYyLz8QUfryNlo0GA+owSjsE/UZEp4TPp4IpAFS9bHr4wi+UjVllpvJvEgWuyT/bLlk4KFqsDqV
    WcHKopu2MfTUiUvNptT5wcouWCWrsbgok1RnIIUL0Hvbjse60DlkcVx86bx3LhCoPN4c3AMjF9s/
    SdZJG8IC/vUEQnUTjF5GcJ/pooRDfuBgAyV2C/b5G/aALl10HodVAMfrTi7aTr9q/Vq9LsBspxrG
    Both attachments have the same length, and are similar (but are exactly the same).
    In the third line of the correctly encoded attachment the characters are; "gf" which are
    encoded in the not correctly encoded attachment to "P/".
    Also setting "-Dmail.mime.multipart.bmparse=false" did not make any difference.
    Any ideas, suggestions, solutions ?
    Cheers
    Peter

    Have you verified that the input byte array has the same contents in both cases?
    Is it possible that your server is picking up a different version of JavaMail?

  • Check if filename is correct

    hey guys,
    when I upload a file using my bsp page, I need to check if the filename is correct,
    right now I have the following code:
    num_multiparts = request->num_multiparts( ).
        while i <= num_multiparts.
          entity = request->get_multipart( i ).
          value = entity->get_header_field( '~content_filename' ).
          if not value is initial.
          found a file!
            navigation->set_parameter( name  = 'content_filename'
                                       value = value ).
    I try to check the filename as follows, but this doesn't work:
            filenamecheck = navigation->get_parameter( name  = 'content_filename').
            if filenamecheck ne 'RU_BRA_PRO.CSV' .
            navigation->goto_page( 'select_country.htm' ).
            endif.

    It should be as simple like that, but in some way, it just loops over this. It makes no difference if my value is correct or not, it just ignores the navigation->goto_page( 'select_country.htm' ). , no mather if the IF-condition is true or not...
    here is my full code... this BSP is bugging me like hell
    event handler for checking and processing user input and
    for defining navigation
    file upload and echo
        data: entity         type ref to if_http_entity,
              file           type string,
              filenamecheck type string,
              content_type   type string,
          content_length        type string,
              num_multiparts type i,
              i              type i value 1,
              doEcho         type string,
              value          type string.
      find multipart containing file
        num_multiparts = request->num_multiparts( ).
        while i <= num_multiparts.
          entity = request->get_multipart( i ).
          filenamecheck = entity->get_header_field( '~content_filename' ). 
          value = entity->get_header_field( '~content_filename' ).
          if not value is initial.
          found a file!
            navigation->set_parameter( name  = 'content_filename'
                                       value = value ).
            content_type = entity->get_header_field( 'Content-Type' ).
            navigation->set_parameter( name  = 'content_type'
                value = content_type ).
          get file content
            file = entity->get_cdata( ).
          get file size
           content_length = xstrlen( file ).
            navigation->set_parameter( name  = 'content_length'
                value = content_length ).
                                                                                    TRANSLATE filenamecheck TO UPPER CASE.
            if file_name ne 'RU_BRA_PRO.CSV' .
            navigation->goto_page( 'select_country.htm' ).
            endif.                                                                               
    data: data_TAB type table of string, LIN TYPE LINE,fname type string.
            split file at CL_ABAP_CHAR_UTILITIES=>CR_LF into table data_TAB.
            fname = '/usr/sap/CBD/DVEBMGS03/data/RU_BRA_PRO.CSV'.
            OPEN DATASET fname FOR OUTPUT in TEXT MODE encoding default.
            if sy-subrc gt 0.
              WRITE: / 'Error opening file'.
            endif.
            LOOP AT data_TAB INTO LIN.
              TRANSFER LIN TO FNAME.
            ENDLOOP.
            CLOSE DATASET FNAME.
            exit.
          endif.
          i = i + 1.
        endwhile.
        if doEcho is not initial.
          signal to the BSP runtime that the response data is
          complete and no onLayout method should be called to
          create the response
          navigation->response_complete( ).
        else.
          navigation->goto_page( 'end_upload.htm' ).
        endif.

  • Qaaws "Web services url is not correct" while adding host.

    Hello all,
                I am getting error "The web services Url is not correct" while adding the host name for Qaaws. The error is coming on the right side of the input text field of the Name showing by yellow warning icon.Please help me to resolve it.I was tried by keeping the host name instead of ip address.But is saying the same error.
    regards
    vishnu

    To enable rest support there are some instructions below:
    Before undertaking this process, I recommend backing up the file(s)
    you are going to edit.
    By default REST is disabled in Axis 2. We need to enable it. We
    need to go to the following folder. Assuming D: is the installation drive:
    1.     D:\Program
    Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\conf (for 32 Bit OS)
    or D:\Program Files (x86)\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\conf (for 64 Bit OS)
    2.     There is a file with the name axis2.xml (This file is an XML File and contains many parameters as well as many other things).
    3.     Make a backup copy of the filename you are about to edit.
    4.     Open the axis2.xml file in Notepad or 'XML Editor' to edit
    5.     Search for the word REST (Ctrl & F is probably easiest)
    6.     You will see a line like this
    <parameter name="disableREST" locked="true">true</parameter>
    We need to replace' true' with 'false' to enable REST, and after the changing that line will look like following:
    <parameter name="disableREST" locked="true">false</parameter>
    7.     Save the file and restart the web server.

  • Getting error while creating a new web app saying "The password supplied with the username domainname\username was not correct. Verify that it was entered correctly and try again"

    Hi ,
    I am trying to create a new web app using Central Administration in Sharepoint 2010 and getting an error "The password supplied with the username  was not correct. Verify that it was entered correctly and try again".
    I tried running this command also "stsadm -o updatefarmcredentials -userlogin <domain\username> -password <newpassword>" but when it got executed it showed me "Access Denied".
    What should i do ??
    Thanks in advance.
    Regards, Anurag

    HI,
    right click on command icon and click run as administrator then use above stsadm commend to update credential. If still you face same issue then try with powershell as mention in below link: (make sure that you open sharepoint powershell as run as administrator)
    http://smartrider.wordpress.com/2010/07/15/powershell-script-to-create-web-application-and-site-collection-in-sharepoint-2010/
    let us know your result
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Error "can not start the configuration in parallel does not correct"

    Hello everybody,
    I have Windows 7 SP1, and when I install Business Objects 4.1 Client, it is install correctly but when i execute the program, for example BO Rich Client, an error appear "can not start the configuration in parallel does not correct" Could you help me?
    Thanks in advance!

    Check this KB
                  1678498  - BI 4.0 Universe Designer Gives Side-by-Side configuration incorrect Error

  • [PI 7.11 SP3] PI components not correctly registering themselves after AS restart

    Hi Experts,
    We have planned a system backup shutdown and restart every night for our PI environment.
    In a random manner, some PI components as XI AF or Integration Directory are not correctly registered to SLD after that restart : for example, Integration Directory registers but it is not assigned to a PI domain.
    It is good to mention that PI instance is actually using its own SLD (local SLD) for registration.
    When the problem occurs, I follow sap note 1117249 to manually register PI components within SLD and this solves the issue.
    But the definitive solution will be to avoid incomplete SLD registration at restart … But I have not yet found any sap note for that kind of solution.
    Il someone can help J
    Thanks a lot
    Nadir

    Hey Caio,
    Thanks for the response but it doesn't actually answer my question.  But to that point, for a "basic" PI post install, which of the NWA config tasks would you run other than the "initial config" ?  And would you run them BEFORE you updated the SLD content (cimsap/CRDelta) ?
    NW: PI - AS ABAP (Basic Configuration for Idoc, Proxy): Maintain
    PI Adapter Engine in JPR Mode
    PI Demo Client
    PI Full Qualified Host Name
    PI Self Test for NetWeaver
    PI SLD Self Registration
    Specifically, I did the SAPINST - ABAP/JAVA patches - Client copy - and THEN the initial config wizard (Setup a new local SLD, ).  Also, during the initial config, I clicked the box marked "This SLD will be used as a name server for development" and my PI server hostname was already in the box  marked "object server name".  This config took about 30 minutes.  I didn't see any errors or warnings.  although I didn't view the log.  I did go into Java JEE services and Filter for Services with name "XPI".  All were green.
    THEN I tried to update the SLD content.
    any thoughts appreciated.
    NICK

  • Muse is NOT Working, Illustrator Update FAILS, Apps list is NOT Correct. What Do I Do?

    I started having issues with CC a couple months ago out of no where. Mostly just with updates from CC for the apps.
    I did the suggested re-installs of CC and then had to try to update by fully re-installing apps and I had funciontality but errors trying to update Illustrator and most of the installed apps did not show up in the CC interface.
    Now I try to do a quick update to a site thru Muse and it tells me that it would not validate my subscription and would be canceled in 2 days.
    I again followed instructions on Adobe to delete a couple of folders and try to re start Muse.
    Now I get an unexpected error and cnont use the program.
    I test out CC for updates and the Muse app shows up to date, Bridge app surprisingly updated fine, and as expected, once again, Illustrator errors out on the update and still my CC app list is not correct so I honestly dont know what updates I have to do on the other programs.
    I checked my subscription details and everything is fine.
    Not having the ability to update efficiently from CC is not a huge deal as long as I can use the programs to work. Not being abel to work because of some programing hiccup is NOT ACCEPTABLE.
    Anybody have any possible paths to fix these latest issues?
    Should I start by wiping the machine clean of any installs and then completely try to re-install everything?
    what a pain.

    UPDATE:   
    I got home tonight and tried to open up Muse.
    This time it opened up the login screen and actually made it past the point it errored at previously.
    Illustrator update stilll gives an Error 8.

  • Message log not correctly associated with contact

    I'm having an issue where I cannot text message a particular contact or phone number. A series of steps I took seems to have exposed a glitch where the message log will not corrrectly associate itself to a newly created contact.  So now when I push the SMS button on the new contact, nothing happens. Also when I manually start a new text message and add the contact to the text message and press send, the message clears from the text box and nothing else happens.
    Here is how you reproduce the error:
    1. I called a number and quickly hung up, just as you would do to log a number for saving later.
    2. From the call log, I clicked on the SMS button to send a text message.
    3. I sent a text message.
    4. From the text message log, I clicked on the number at the top to save it to contacts.
    5. I saved a new contact with the number.
    6. If you go back to the message log, you should notice that the message log header does not update with the new contact's name. Instead it will still show the number.
    7. Finally, I went to the test contact and pressed the SMS button and nothing happens.
    After you add the contact like I did, it seems that the contact does not correct connect itself with the message log.
    After step 5, go to the message log and click on the message log header which should still be the number. When you do this, you would think it would open up the new test contact info card, but instead it opens up a new contact card, as if the number is not saved to a contact yet. It gives me the option to Add To Contacts at the bottom.

    I have the same issue.  I started not being able to text only one person.  I go to the contact and click on the "SMS" button and it doesn nothing.  If I try to send the message directly to the number it just doesn't do anything, the message leaves the text box, but doens't show up in the conversation window.  I'm not exactly sure what I did to do this, but I think it's because I added the same contact twice.  Once from my incoming calls, and once from my outgoing texts.  I've tried deleting all references to this number (ie the contact info, incoming/outoing calls and texts) but nothing has worked.  It must be the corrupt contact thing as well.

  • Is there a way to reset my iphone i did the latest update on it and now it will not let me download any apps. I tried the general reset but it keeps denieing me saying that my passcode is not correct. This is the same passcode that i use to unlock

    Is there any way to reset my iphone i did the latest update and now i cant download any new apps? I tried to do the general reset but it keeps telling me that my passcode is not correct. This is the same passcode that I use to unlock my phine though to get in to it.

    press and hold both the power and home buttons until the apple logo appears and then let them go.  Wait till the phone restarts and then try

  • Vendor Invoices - Entered on and parked details not correct

    Hi since we upgraded to ECC6 we have noticed that the dates stored in the Header of both LIV and Direct Entry invoices are not correct.
    If we Park a invoice we have a the corrected Entered on and Entered By details is correct.
    Then when the document is posted the entered on date and user name then changes to the date the invoice was posted on the system.
    We need to be able to see when the document was originally put on the system as a parked document so we can determine how long it takes us to process them.
    I have checked in bkpf and usname and ppnam is the same and nothing in sname.
    I cant see any OSS notes to say this is a known problem.  Does anyone know how to resolve this.
    Thanks

    Hi,
    Unfortunately it is not that simple.
    We need to use the vendor tax date in the document date so this cannot be used.
    We could also do with storing the date we scanned the invoice to workflow but there is no spare fields for this either.
    Thanks

  • Delivery Date in Inbound delivery document not correct

    Dear all,
    I have a question with regards to the wrong delivery date appear in our inbound delivery.
    Our inbound delivery is created via EDI output in the outbound delivery of a standard SAP cross company stock transport order. The delivery date in the inbound delivery is not correct from a business point of view.
    +The correct delivery date in the inbound delivery document should be [the Actual GI date field in the outbound delivery] + [transport time (i.e. route field) in the outbound delivery].+
    Either way (i.e. the Actual GI date field is later/earlier than the planned GI in the outbound delivery), the delivery date in the inbound delivery is also wrong.
    Do you have any idea?  We have tried to change the inbound delivery type EL by setting a flag (i.e. X) in the rescheduling (TVLK-NEUTE), and it still doesnu2019t work.
    Please help.
    Thanks.
    Tuff

    Does anyone know this problem?
    appreciate some feedback.

  • My website background image color is not correct in Safari????

    On my website my background jpg image that appears in bottom left corner is not correct in Safari. In ALL other web browsers (Firefox 3.1, IE, Opera, etc) my website looks fine! So it must be a setting or error in Safari. The jpg image in question has a background color of 191919 (dark gray) and it matches in Firefox and IE, etc... but not in Safari? In Safari my jpg image is a lighter color than rest of webpage. My header is the same type of file (jpg with #191919 background) and it looks fine... THAT is the strange part!
    Is this a known issue with safari or am I doing something wrong? I have tried no color management on the image in Photoshop and with color management in Photoshop (when I save for web) and this doesn't seem to matter. It is driving me crazy. My website looks silly in Safari with this error. www.eXacteXposure.com is the website.
    David

    flynlyons2 wrote:
    On my website my background jpg image that appears in bottom left corner is not correct in Safari. ... My website looks silly in Safari with this error. www.eXacteXposure.com is the website.
    I'm not seeing that problem here, either (Safari 3.1.2 in Mac OS X 10.5.5). The image at the bottom left corner matches the background nicely.
    Have you looked at your site on more than one Mac running Safari? My thinking at this point is that your web site and images are fine, but there's a problem with your installation of Safari. Do you have any third party Safari "enhancers" or hacks installed?

  • I purchased CS5 Design Standard about 5 years ago. Now I am trying to install  second PC, but I got a message like " This serial number is not correct."  I want to know the correct serial number, but I missed my ex adobe ID because I've changed my E-mail

    I purchased CS5 Design Standard about 5 years ago. Now I am trying to install  second PC, but I got a message like " This serial number is not correct."  I want to know the correct serial number, but I missed my ex adobe ID because I've changed my E-mail address.

    It is not clear to me what your issue is with not being able to sign in to your Adobe account to find the serial number.  You should still be able to sign in and find your serial number if you registered the software.
    If your first PC is a Windows machine you might be able to extract the serial number from it using the Belarc Advisor
    http://www.belarc.com/free_download.html

Maybe you are looking for

  • Imessage/Text message not working

    My Imessages and text messages will not go through. I have to turn off the phone and restart it the Imessages will then send as a plain text. I am also not receiving any texts. I know this based on the angry phone calls and Instant Messages I am rece

  • Speaker Not Working

    i have a macbook 2009 with osx mavericks (10.9.4). so i was watching youtube, then suddenly my macbook freezes and i can't do nothing about it. so i force shutdown and turn it on again. when it's on, my speaker is not working and when i check the sou

  • Where'd the channel strip go?

    i've lost the channel strip, tool box, etc somehow, and can't get it back. can anyone help?

  • IBAN Code Error

    Hello All , I want to update IBAN code on vendor master data . There is an error message when I want to update it . IBAN is not valid. Is there anybody see that kind of error ? Thanks Dash

  • Run Cristal Report from BI

    Hy, i have this problem: i create a crystal report and now i find it on my User menu. I try to execute it and on the IE, i have this url: sap/bw/ce_url?(ce_protcl):(DS)(ce_server)/(ce_path_pr)/viewreport.csp(Q)bw_id=D3P0G97CKBRFS2PDBCHJ1FP0E&sap_sysi