Recent content by knowledge76

  1. K

    Moving Average

    Hi Experts, I tried the whole day to contruct a query that deliver me the sum of 3 months i.e the actual month + 2 months. The Table layout is Month1 Cost Item Year Moving Sum (should be Output) 01/08/2010 20 A 2010 55 01/09/2010...
  2. K

    snp to pdf Problem

    Hi Experts, I am having the problem that when I try to save my snp file to pdf file, sometimes the pdf file generated is not the correct one. For example i have a customer A and I have generated pdf files for it and now I want to make pdf file of report for customer B, now when sometimes the...
  3. K

    Prevent table deletion

    Thanks DClarke
  4. K

    Prevent table deletion

    What is for the case when you as administrator deleted a table accidently. In this case would such a routine with some dialogbox to show warning would not be helpful?
  5. K

    Prevent table deletion

    HI experts, Is there a way to prevent the user to delete tables? Or ask user when he tries to delete a table whether he is sure about deletion of that specific object. Thanks in advance for your suggestions
  6. K

    Unique items in Recordset

    Thanks I had more or less the same idea. Thanks I tried it and it works fine. Thanks again for the quick reply.
  7. K

    Unique items in Recordset

    Hi experts, Today morning I am asking myself the question how I could get unique items in a recordset. I have a parts table and for each part there should be approriate description available. Now for some parts there are no description available and as one part can come many times in this...
  8. K

    Add values in listbox in different columns

    Got it...:) Created a dynamic table which is bound to list and then created query over it as a source and by creating the list no. of columns selected as wished. Thanks for your help.
  9. K

    Add values in listbox in different columns

    Thanks for the suggestions. I will give it a try.
  10. K

    Add values in listbox in different columns

    strsql = "SELECT TBL_VP_" & Forms!Form1!Combo3 & ".VEHICLE_LINE_WERS AS VLWERS" '& vbNewLine strsql = strsql & ", TBL_VP_" & Forms!Form1!Combo3 & ".ENGINE AS ENGINE" '& vbNewLine strsql = strsql & ", TBL_AWS_ENGINE.Engine_Description as ENG_DESC" '& vbNewLine strsql = strsql & "...
  11. K

    Add values in listbox in different columns

    tried as you told but the code is doing nothing new...:rolleyes:
  12. K

    Add values in listbox in different columns

    Option Compare Database Private Sub Combo3_AfterUpdate() Dim db As DAO.Database Dim rs As DAO.Recordset Dim vl As String Dim strsql As String Dim totalengines As Integer Dim usedengines As Integer Dim notusedengines As Integer Dim noinfos As Integer List6.RowSource = "" vl = Combo3.Value...
  13. K

    extracting VARIABLE NAME

    HI friends, I wonder whether it is possible to get variable name for a simple code like this i= 1 for i = 1 to 8 debug.print i next i I can get the values of i but if i have a complicated strcuture aqnd I at specific time i WANT TO KNOW WHICH VARIABLE IS DELERING ME A VALUE HOW CAN I...
  14. K

    Max function in vba

    Thanks all of you at last it is working. Tahnks again
  15. K

    Max function in vba

    strsql = "Select max(Len([" & rs.Fields(i).Name & "])) From " & strobjectname & ";" The above is working but I am getting runtime error 2342 "A runsql action requires an argument consisting of an sql statement."
Back
Top Bottom