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 SkipVought 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: PROXI
  • Order by date
  1. PROXI

    Using Multi select Listbox as criteria for SQL statement

    You are my hero. It worked like a charm! Thanks, PROXI
  2. PROXI

    Using Multi select Listbox as criteria for SQL statement

    Can you please elaborate on what you mean. I am unsure where to alter the code to get to those results. Thanks, PROXI
  3. PROXI

    Using Multi select Listbox as criteria for SQL statement

    If I make only one selection from the listbox the SQL works perfectly. If I make multiple selections, it pulls everything (I.E. As if you didn't put in any criteria for strWhere). Any help would be really appreciated. Private Sub CmdExport_Click() On Error GoTo Err_CmdExport_Click Dim...
  4. PROXI

    What is wrong with my SQL statement???

    Alright... Sorry for the delay in responding. I had other projects that pushed this one to the side. Thanks PHV for finding the missing ". The code worked, but then I found that I didn't have one of the fields in the code. This is what I have now, but it is giving me a "Type Mismatch" Error...
  5. PROXI

    What is wrong with my SQL statement???

    I have a similar statement that I can't get to work either :( any help on this one PHV? :-D StrSQL = "INSERT INTO 222 ( Field2, Field3, Field4 ) " & _ "SELECT Sum(a.DOLLAR_AMT) AS Field2, b.TRUST, a.PROCESSED_DATE " & _ "FROM...
  6. PROXI

    What is wrong with my SQL statement???

    Thanks PHV... I modified it a bit, but your suggestions made it work perfectly :) Here is what I ended up with. I added a textbox to the my form that pulls in the DMax of the table on form load to give me a starting point and just have it run through today. Thanks again :) Private Sub...
  7. PROXI

    What is wrong with my SQL statement???

    StrSql = "INSERT INTO ForfTest ( CASE_SEQ_ID, PROCESSED_DATE, TRNMSTR_SEQ_ID, AMOUNT ) " & _ "SELECT PUBLIC_PPAK_ACCT_ACTIVITIES.CASE_SEQ_ID, PUBLIC_PPAK_ACCT_ACTIVITIES.PROCESSED_DATE, PUBLIC_PPAK_ACCT_ACTIVITIES.TRNMSTR_SEQ_ID, PUBLIC_PPAK_ACCT_ACTIVITIES.DOLLAR_AMT AS Amount " & _...
  8. PROXI

    Form validation not working

    I'm retarded. Had the "If" statement set to <> instead of =. If Nz(Me.PPA_NBR, "") & "" = "" Then MsgBox "Please input an administrator number", vbOKOnly, "Input Error" GoTo Command10_Click_Exit Thanks, PROXI
  9. PROXI

    Form validation not working

    Hello, I have been trying to get this code to work for me and I just can't seem to get it to work right. It appears that the code is just skipping over my first "If" clause and going straight to the sql. Any help would be greatly appreciated. Private Sub Command10_Click() Dim strSQL As...
  10. PROXI

    Running Sum with a Beginning balance

    I always hate it when someone solves a problem and doesn't share the way they did it to help anyone else that may have that same problem. I figured a way of doing it that is much simpler than any other form of the running sum I could find. The best part is that it doesn't involve making...
  11. PROXI

    Running Sum with a Beginning balance

    Hello everyone, I am trying to do a running total in my report. I have no problem with the running sum in the detail section of the report. The problem that I am running into is that I want to have a starting point. I have a textbox in the header that has a value in it that is pulled from...
  12. PROXI

    Setting textbox value to the filename of last imported txt file

    I figured it out. I always hate when people solve the problem and don't put the code that finally did it for later people to use. Here is how I have completed my problem. I set the control source of my unbound textbox to be: =DLookUp("File","Tblfile") And here is my code behind on the form...
  13. PROXI

    Setting textbox value to the filename of last imported txt file

    Alright... I ended up finding a simple way to retrieve the value of the for my textbox using Dlookup() to pull the value into the texbox. I am trying to use an SQL update statement to put the value of the import file into the table I am using. What am I doing wrong here?!?!?!?!?!? Private...
  14. PROXI

    Setting textbox value to the filename of last imported txt file

    Alright... I got it to work with a bit of trial and error. The problem that I am running into is that it is pulling the file name of the first file imported and not the last file imported. Here is what I have now: [cod] Private Sub bImportFiles_Click() On Error GoTo bImportFiles_Click_Err...
  15. PROXI

    Setting textbox value to the filename of last imported txt file

    Alright... What is the best way to go about doing that. I would need it to just overwrite the data that is in the table each time since I just need the last file name. Thanks, PROXI
  16. PROXI

    Setting textbox value to the filename of last imported txt file

    That is the thing. I need it to be there the next time that I log into the database. That is why I am trying to set the label caption to the variable. I want to avoid losing it when I log out. Thanks, PROXI
  17. PROXI

    Setting textbox value to the filename of last imported txt file

    Hello All, I have code that I use to import a group of text files into my database. What I am coming across is that I forget what the last file was that I imported since they are moved off to a different server after I have copied them. I would like to set a textbox or label on my main form...
  18. PROXI

    Cross-Tab Query Needing opposite Value

    I actually just figured this out. I am not a fan of hard coding queries either, but this is sort of a quick database that I don't want to spend much time on. Just for posterity, here is the SQL that I got to do what I needed in case someone else may use it later: [code] PARAMETERS [Enter...
  19. PROXI

    Cross-Tab Query Needing opposite Value

    Hello, I am working on an accounting database. There are many different trans codes that I work with. There are a few that cross between the financial ledgers that I am trying to work with. Due to them crossing the ledgers, depending on which account I am trying to work with they may need to...
  20. PROXI

    Need help with importing files

    I took that out and now I am getting the 3011 jet error. The error is saying the the database is trying to look for the file that was just moved to the completed directory. It seems like the strfile variable isn't updating to the next file in the list. Thanks, PROXI

Part and Inventory Search

Back
Top