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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by 696796

  1. 696796

    Send query to mail merge doc

    Ok sure, Sometimes a mail merge is powered by a query that could be stored in your access database. This is a static query which cannot be changed and is bound to the document. Now what i was thinking was if i built the sql statement in vb.net, and open the mailmerge document sending through...
  2. 696796

    Send query to mail merge doc

    Hi experts, Any ideas how i can send a query through so that it powers a mail merge document in ms word? Any help much apreciated guys and gals, Al
  3. 696796

    Mail merge, change parameters query stored in access

    Hi experts, i have set up a mail merge in ms word, and have linked it to a query in my access 97 database. Now i want to be able to change a parameter in the query, i.e. CarNo(a number which is unique to each record). How is it best to send this to the query/word document - at the moment it...
  4. 696796

    Mail merge - change parameter in query

    Hi experts, i have set up a mail merge in ms word, and have linked it to a query in my access 97 database. Now i want to be able to change a parameter in the query, i.e. CarNo(a number which is unique to each record). How is it best to send this to the query/word document - at the moment it...
  5. 696796

    Creating a multiple select statement

    Interesting.. looks good, it's just my date problem, let me explain in more detail. The user will pick a year and period. From that i calculate back 13 periods, so for example... If the user chooses Year 2006, period 8 - ihave the following years and dates:- actualYear actualPeriod 2005...
  6. 696796

    Creating a multiple select statement

    No i haven't - i'm runing the code from vb.net so writing the statement in there. How would a crosstab help me?
  7. 696796

    Creating a multiple select statement

    Could i put a year in the IIf(iperiod=9,1,0) statement somewhere? IIf(iyear = 2005(iperiod=9,1,0))?
  8. 696796

    Creating a multiple select statement

    There will be records in the database for all periods years, so there will be from year 2004-2006 and each may have data for each period(1-13)
  9. 696796

    Creating a multiple select statement

    Sorry, it does return values, but the date issue still stands. Heres some sample data;- BaseDataId supplierId originIsCustomer dateRaised supplierResponse dateCARsent dateResponseReceived dateCARclosed daysToClose statusIsOpen weigtedIncidentresult impactId iyear iperiod 63 33 True...
  10. 696796

    Creating a multiple select statement

    Right i see now - the thing is that the iDate sometimes changes from 2005 to 2006, i also tried rning the statement but it doesn't return values for the second and third part of the query, just the first part...
  11. 696796

    Creating a multiple select statement

    Thanks, whats the 9,1,0 in Sum(IIf(iperiod=9,1,0))?
  12. 696796

    Creating a multiple select statement

    Hi, At the moment i have 13 seperate statements selecting a count of records depending on the criteria dates. A few are shown below:- SELECT count(impactID) as period1 FROM tblBaseData WHERE iyear = 2005 AND iperiod = 9 AND impactId = 1 SELECT count(impactID) as period1 FROM tblBaseData...
  13. 696796

    date format

    Hi, VB makes my dates from my datetimepicker into the format mm/dd/yyyy instead of dd/mm/yyyy like i want. Heres how i put the value into a variable to use:- Dim dtResponseReceivedTo As Date = dtpTo.Value.Date I need dd/mm/yyyy, this is how its stored in my access97 database - am usingvis...
  14. 696796

    Sort a datagrid column

    its cool, just orddered the sql like u said
  15. 696796

    Sort a datagrid column

    cool, can i get the sort property to sort a column when i load the datagrid?

Part and Inventory Search

Back
Top