Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Karja
  • Order by date
  1. Karja

    Fastest way to add an Array to a table

    Yes, I got your point. I thought it would be nice to work with his code and just let him know. The reason why the data is in an array is dat many calculations are made with it which were already written in VBA. Now I am working on storing the data. This the story. No higher goals of what soever...
  2. Karja

    Fastest way to add an Array to a table

    Thanks for your answer and effort. Your suggestion works fine but is not any faster. I've done some rewriting as the function you're supplying might come in handy. Here the altered code which makes it more costumizable. Kind regards, Karja Public Sub insertArrayIntoTable(myArray() As Variant...
  3. Karja

    Fastest way to add an Array to a table

    Goodmorning, I've got a 2d-array with about 1000 rows and 5 columns, now I want to write this into the database. Now I just have a loop through the Array and write each line seperately to the database. for x=1 to ubound(array) rs.adddnew rs![Field1] = array(x,1) rs![Field2] = array(x,2)...
  4. Karja

    Filtering for UNIQUE records in one table

    What about a DISTINCT? SELECT DISTINCT Name, Id, Code FROM yourTable
  5. Karja

    Problems with Sorting a query with subqueries

    dhookom, yes now I've tried your initial suggestion. First I was not completely sure what you meant. It WORKS! Thank you all!
  6. Karja

    Problems with Sorting a query with subqueries

    All thanks for your answer. When I sort on the subquery or iif([TypeSubCode] Like '161*', 0, 1) I get a syntax error. PHV, what do you mean by "In fact you may sort on the ordinal position of the column". I am afraid I do not understand it. Regards, Karja
  7. Karja

    Problems with Sorting a query with subqueries

    Goodmorning, I've got a query where some fields are the result of a subquery. The query that causes me trouble is: SQLs = "SELECT SecurityCode, Holding, iif([TypeSubCode] Like '161*', 0, 1) As TypeOption, " & _ "(SELECT Value FROM G_MarketData_BB WHERE G_MarketData_GP.Bloomberg =...
  8. Karja

    Query: Joins with data from more than 1 row

    Thanks for your answer, but I guess this not exactly what I am looking for. I solved the problem by making a query with subqueries for the field I need from the 2nd table. Cheers!
  9. Karja

    Query: Joins with data from more than 1 row

    Goodmorning. I've have a question about building a query. Basically I have two simple tables: tbl_Securities ID Name tbl_BloombergInfo ID ID_Security (foreignKey) TypeOfData Value The first table consist of all kinds of securitycodes (stocks, bonds, options, cash) etc. etc. The second table...
  10. Karja

    Can't open Accessfile - The parameter is incorrect

    Thanks for the link. I have discovered that it has to do with the Citrix environment we are using over here. If Access crashes or something like that (infinite loop) or you open accidentially the access application for the second time while the other is open, then you get the above mention...
  11. Karja

    Many-to-Many - populate listboxes

    Hello. I finally managed to finish the job. Below the working code, just to properly close this thread. Thanks for the help! 'Gekoppelde restricties SQLa = "SELECT M_Restrictions.ID, M_Restrictions.Code, M_Restrictions.Description, M_Restrictions.NumberOfVariables " & _ "FROM...
  12. Karja

    Many-to-Many - populate listboxes

    Thanks again. Not a bad idea but I should add that as it is a many-to-many relationship. I do not want to let the listbox populated with doubles or triples etc. Therefore I must include a DISTINCT G_Restrictions.Id. I will try Wednesday to re-write the queries as I think I must start with...
  13. Karja

    Many-to-Many - populate listboxes

    Thanks for your answer HarleyQuinn. You centainly got a point there. Now the query works (which it did not before) but it returns exactly the same values as SQLa (which I did not alter). I've not got a clue why this is happening? Do you? 'Niet-gekoppelde restricties subSQL = "SELECT...
  14. Karja

    Many-to-Many - populate listboxes

    Hello there, I am building an Access application to store information of Investments Funds and their Restrictions. There is more than one Fund and more than one Restriction. Each Fund can have multiple restrictions and each restriction can be attached to more than one Fund. So I created the...
  15. Karja

    Can't open Accessfile - The parameter is incorrect

    Goodmorning! I was working on my database & VBA and saved my work. After that I was not able to enter the .mdb file again. The system prompts me: N:\.....\Administration.mdb The parameter is incorrect I just cannot open my Database. We are working in a Citrix environment. Access2003 / Windows...
  16. Karja

    File not found - open "filename" for output as 1 (VBA Excel)

    Yes, I do. I am local administrator. The problem occurs with every directory I am trying. At home (where I am now, it also does not work). I can create manual files in alle directories, so I am absotely sure I have sufficient permission)
  17. Karja

    File not found - open "filename" for output as 1 (VBA Excel)

    Hello again. Thanks for the reply's. Now this is my actual code an it still does not work :-( Const OutputFile As String = "c:\Incasso.txt" hFile = FreeFile: Open OutputFile For Output As hFile The current dir is C:\Documents and Settings\user\My Documents (but this should not...
  18. Karja

    File not found - open "filename" for output as 1 (VBA Excel)

    Thanks for the tip. But I already tried those things (should have mentioned it, though. But that is not the problem...
  19. Karja

    File not found - open "filename" for output as 1 (VBA Excel)

    Hello there, system: VBA Microsoft Office 2003, win XP SP2 I've got a very strange problem and I was wondering if somebody of you could help. Suddeny a VBA program does not work anymore. It stops at the following line: Open "Datafile.txt" For Output As #1 Then the system comes up with 'file...
  20. Karja

    Problem: 'pop up' when VBA tries to send automated email via OUTLOOK

    I've met this same problem. Of course it is a protection against spam. If I am correct it is a server setting which not everybody is happy to change. Perhaps the following program helps you further: http://www.miesoftware.com/Support/Articles/ols61.htm

Part and Inventory Search

Back
Top