Search results

  1. D

    sql joint syntax error

    You need a space before the highlighted text, or after the JOIN statement.
  2. D

    Access VBA - Dynamically assign properties to variable with of custom type

    Well of course that doesn't work, your type defines 3 possible values ( projectName , projectNumber , projectDescription ) you tried to access [regionName] which is none of those. In short, you cannot dynamically access the type the way you are trying to do. You can still use a loop, but each...
  3. D

    Access bloats with ADODB xml processing

    mdlueck is correct, no way around the bloating beast that is Access. You could use the CreateDatabase command to create a temporary work database, import your data in there, append the final results into the backend, then delete the whole database upon completion.
  4. D

    Neat capability of Excel VBA, is Access VBA able to obtain dynamic current location..

    http://www.everythingaccess.com/products-services.htm They have product that seems to do what you want which means it can be done. However I don't know if it can be done purely through VBA. This type of information is usually retrieved from the call stack which can be done be reading CPU...
  5. D

    Double sided link between Excel and Access

    I can't think of any way to "reliably" do this, since doing it this way is not at all advised. You are essentially trying to create two systems of record for the same data set, by all accounts this should not be done. If you want your users to move to Access then have Access be the system of...
  6. D

    Etiquette toward bidding programmers on Elance

    As a contract programmer I would say you are not any under obligation to pay for the time spent on a bid, unless you've lead that programmer to believe they had the job already, if they are bidding for a project then it is like an interview, put your best foot forward and try to land the job...
  7. D

    Run time error 3001 Invalid Argument when using DoCmd.Transfertext

    Dim dkg As Variant, str As String set dkg = Application.FileDialog(1) dkg.show str = dkg.SelectedItems(1)
  8. D

    Output table to CSV while retaining all fields as text

    This may sound crazy, but how are you checking the file to see if the zeros are there or not, Excel? If the answer is yes than that may be your problem, try opening the CSV file in notepad or wordpad and see if the Zeros are there, Excel will try to be "helpful" by auto converting text to...
  9. D

    Pass Parameters to C# WinForms App

    Simplest way would probably be the shell command Shell Chr(34) & "C:\Temp\MyTestForm.exe userNameHere" & Chr(34)
  10. D

    Runtime Error -2147467260 (80004004) with xml put

    PUT is usually an FTP command, have you tried using POST?
  11. D

    Pass Parameters to C# WinForms App

    The command line is where to go, I would modify your main method in the program.cs file to accept command line arguments. Then have a public property such as username on your form, set that in the main method before the Application.Run call is made.
  12. D

    Maximum number of subfolders / directories

    Not so much a number of folder limitation, but the length of the path that limits you. IMO it depends on your design as to how many sub-folders make sense, if you have a year / month / day structure then it makes sense to have 30-31 sub-folders under most month folders...
  13. D

    Invalid use of Null

    based on the variable names I'm guessing that strDateComp is a string, in that case the line of code strDateComp = Null will fail because in VBA you cannot set a string equal to null, you can set it equal to Empty, or a zero length string "", but not null.
  14. D

    Error Handling duplication?

    I don't think you gain much in this instance...however if you are going to compile this to an MDE I would leave it in there, MDE's or ACCDE's don't like unhandled exceptions so a little extra precaution is not a bad idea.
  15. D

    Run-time Error '13' : Type Mismatch

    First, this is the VB.NET section so this should really be posted over in the VBA code area since that's what this code is. Second, I suspect the error is on this lookup function DLookup("[Password]", "tblUsers", "[UserName]='" & txtUserName.Value & "'") If the user/pwd combination isn't...
  16. D

    Security

    Sounds like someone setup the security incorrectly and overwrote their system.mdw file, this would require a re-install of Access to fix the issue.
  17. D

    Trim/Remove line breaks from every field in every record

    I would do it a bit differently, rather than go through each record, I would build a dynamic SQL string and execute that, on large number of records there will be a major performance benefit. Function RemoveCrLf(strTable As String) Dim fld As DAO.Field, tbl As DAO.TableDef, db As...
  18. D

    Populating Array member of a User Defined Type.

    this works for me Type foo sAR() As String End Type Function retArray() As String() Dim sAR() As String ReDim sAR(1 To 3) sAR(1) = "A" sAR(2) = "B" sAR(3) = "C" retArray = sAR End Function Sub test() Dim stringArray() As String Dim f As foo stringArray = retArray f.sAR = retArray...
  19. D

    Why did global work but public didn't?

    I believe Access considers Forms class objects so the code behind them probably behaves like a class module does, the public variable is available within form1, but not outside...unless you declare a form1 object, then you could access or assign data to/from the public variable.
  20. D

    Monitor Access Program

    As someone who is in a similar situation I can say I have not found a reliable way to do this. Adding extensive logging to the process then checking the log file/table is one way to go. There isn't a rock solid method, and Access is prone to random hangups, I had an Access application running...
Back
Top Bottom