Search results

  1. L

    Help, query question about "finding a string"

    thanks but in case there is another number, say 551, in another Number_List record, it might cause selection error: STockID Number_List ---------- ---------------- D001 1,5,57,299,551 D002 2 In the above case, actually, "51" does not exist in either STockID. But If i use...
  2. L

    Help, query question about "finding a string"

    Dear all, I have a table (TableA) in Access looks like that: STockID Number_List ------- ----------- D001 44,45,47,41,42 D002 1,2,3,5,58,60,61 D003 49,50,51,48,53,54 P.S. Both fields are having "Text" datatype. Now, I have to write...
  3. L

    how to compare two queries returned rows?

    thanks, but the wizard outcome seems not match my requirement
  4. L

    how to compare two queries returned rows?

    Dear all, Assume I have two queries getting similar records from different tables: Query1 ------- Select stockname, transaction_date, amount from TableA where transaction_date = #21-04-2009# Query2 ------- Select stockname, transaction_date, amount from TableB where transaction_date =...
  5. L

    Question How to obtain the scheme of an Access Database?

    good ;)... many thanks.. but it need money..:o , my company surely ban my idea.:p
  6. L

    Question How to obtain the scheme of an Access Database?

    thanks, but I just "import" the text file generated by the "export" function. When I import the exported text file, the above error was shown :o
  7. L

    Question How to obtain the scheme of an Access Database?

    thanks. Actually, I face a problem: I have a production Access Database and a development Access Database. As you know, development database is always changing (e.g. add some fields in a table, change the datatype of a field etc..).. I always have to "record" the changes down and then apply the...
  8. L

    Question How to obtain the scheme of an Access Database?

    Many thanks. :cool: I have tried the script. Actually, I don't really understand the contents of "exported" text files. I could not find any "create table" statement in the table object text files, which i suppose it will contain. Besides, there is an import error which say: " You canceled the...
  9. L

    Question How to obtain the scheme of an Access Database?

    hi all, The scheme that I mean is something like create database, create table ..index etc scripts. I believe John has got what I mean. But John, I would like to keep a script file (a text file) instead of "import" the objects from development database to production database. SQL Server...
  10. L

    Question How to obtain the scheme of an Access Database?

    Dear all, I have an Access Database with about 30 tables (include link tables) and 10 queries. Could I export the schemes of these 30 tables and 10 queries so that I can import these schemes to the production database? Many thanks :)
  11. L

    [Urgent Help] select statement with Date Field

    Hi DCrake, Thank you a lot for your kindly help. Since I am currently in company, and according to my company's security and privacy policies, I cannot upload anything in Internet, so, i just can do it tonight when I back home. Actually, I have a VB program which consists a lot of queries to...
  12. L

    [Urgent Help] select statement with Date Field

    So, in my VB programs, there are about 200 queries writing likes that: where format(ABC,'dd/mm/yyyy') = format(DEF,'dd/mm/yyyy') do you think i need to change it back to: where ABC = format(DEF,'dd/mm/yyyy') ? Many many thanks
  13. L

    [Urgent Help] select statement with Date Field

    If using this: where WDays >= format('10/04/2009','dd/mm/yyyy') The result will be FINE
  14. L

    [Urgent Help] select statement with Date Field

    Many thanks for your kindly help. I will delete the "Year" field, and currently, i am more concern about the FORMAT function because I have to re-write over 500 queries in my VB program in case the "FORMAT" is used in-correctly. Let us discuss on "FORMAT" first. :o I want to know, why if I...
  15. L

    [Urgent Help] select statement with Date Field

    ohooh.. I have tried: select top 1 format(wdays,'dd/mm/yyyy') as wdays2 from TableA where year = 2009 and WDays >= format(#10/04/2009#, 'dd/mm/yyyy') order by wdays asc The result is horrible, it returns 05/10/2009 why the behaviour is unpredictable and not consistent...
  16. L

    [Urgent Help] select statement with Date Field

    thanks for your prompt reply. 1. Yes, I have a field called "Year" 2. so, do I need need to write in this way? format(Wdays,'dd/mm/yyyy') >= Format(#01/04/2009#,"dd/mm/yyyy") for the comparison of left hand side and right hand side in the query? 3. i use "order by" because I want to make sure...
  17. L

    [Urgent Help] select statement with Date Field

    Dear all, I am really confused with Access Date field handling. I have the following query (assume TableA has a field "wdays" which stores all the dates in Year 2009): select top 1 format(wdays,'dd/mm/yyyy') as wdays1 from TableA where year = 2009 and WDays >= format('10/04/2009'...
  18. L

    [Help] How to generate working dates of a year?

    Dear all, 1. Assume TableA stores the holiday dates (exclude Saturday and Sunday) of a year, HDays Year ----- ----- 01-01-2009 2009 10-04-2009 2009 13-04-2009 2009 ...etc 2.) Right now, I have to...
  19. L

    Update statement cannot use group by?

    Dear all, I find that Access cannot use "group by" in the sub query. The following query will prompt up a message "Operation must use an updatable query." if being run: update Summary as s inner join (SELECT refno, sum(amount) as s_amount FROM Details WHERE Refno = '20090213001' group...
  20. L

    Update query with iif function

    thanks for your reply. Actually, the formula is not the concern, my concern is how update can be used with iif function.
Back
Top Bottom