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 Mike Lewis 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: *

  1. marco02

    WHY ??? When I FILTER a FORM my TextBox gets disabled !!!

    Hi, I have a form retrieving a table's data. I added to this form a TEXT_BOX + COMMAND_BUTTON for filtering purposes. 1) The user enters his filtering criteria in the TEXT_BOX (filter to be applied to the form itself) 2) Then the user presses the COMMAND_BUTTON to launch the filtering...
  2. marco02

    HOW TO retrieve the CurrentRecordPosition ???

    Yeah Schroeder, actually that's what I'm gonna do: dump the table's data into a Form and work from there. The user will just have to change his habits and do what I tell him !! [hammer] Now, who's the master he ? [pc2] ... but if somebody knows how to "retrieve directly the CurrentRecord...
  3. marco02

    HOW TO retrieve the CurrentRecordPosition ???

    Thank you Jantie and Foada BUT, -> Jantie, your code looks like what I want to do but I'm using a Table. My user visually scans a table and selects the row he is interested in in the table directly. Then launches the code. That's when I want to retrieve the RowNumber he selected in the TABLE...
  4. marco02

    HOW TO retrieve the CurrentRecordPosition ???

    Hi guys, For my application I need to retrieve the record/row the user has selected. How do I do that ? Let's say the user chooses to launch the code on record 49: 1) he opens the table 2) he clicks in record/row number 49 3) and clicks command button "Launch" of my form or...
  5. marco02

    How to PURGE / CLEAN database ???

    Hi, For my application I am linking a lot of tables to my database (from other dbs). After a while of importing/deleting/importing/etc those tables, my database is enormous (+60MB) even though I barely store any data in my database. - Why is the size of my database increasing that much if I...
  6. marco02

    HOW TO Append a new field in an existing Table ???

    Hi I'm trying to append a NEW FIELD on an existing table. My table has 2 fields and I want to append a 3rd one. With the code below my field DOES NOT get added to my table. Dim fld As DAO.Field Dim tbl As DAO.TableDef Set tbl = CurrentDb.CreateTableDef("Table1") Set...
  7. marco02

    HOW TO delete Query sitting in a closed database ?

    ... no wonder why my boss looks at me with this funny face ... I AM REALLY STUPID ! Thanks CClint for your constant effort on my question, it works now (why the heck is there so many different ways to do the same thing in VB ???) marco.
  8. marco02

    HOW TO delete Query sitting in a closed database ?

    uuuuuh it was to good to be true >> db.Querydefs().Delete is not valid... :-( thanks anyway, marco -desparated- ;-)
  9. marco02

    HOW TO delete Query sitting in a closed database ?

    Thanks CClint but my connection is there and the DROP statement only works for TABLES and INDEXES... >> Set db2 = DBEngine(0).OpenDatabase(path2) >> db2.Execute "DROP TABLE QueryNameToDelete;" Doesn't work to delete my query. I'm working with DAO btw. "DoCmd.DeleteObject&quot...
  10. marco02

    HOW TO delete Query sitting in a closed database ?

    I am working from an open database (db1). Can I delete a query sitting in a closed database (db2)? How ??? I hoped: DoCmd.DeleteObject acQuery, db2.Querydefs(NameOfQryToDelete) would work but it does not :-( I would like to delete this query without opening db2 if possible ... i could open db2...
  11. marco02

    Help ! DBEngine reference not working...

    Thanks CClint! Very clear explanation thank you, everything works fine now. ...except now that i can't manage to append a Field to an already existing table ... Set fld = tbl.CreateField("FieldName", dbText, 30) tbl.Fields.Append fld bugs,... Error tells me : "The database...
  12. marco02

    Help ! DBEngine reference not working...

    Hi I need to work with tables in two different database, I can't manage to refer to my second database, Both databases are open... #DAO declarations Dim db1 as DAO.Database Dim db2 as DAO.Database # this line is OK Set db1 = DBEngine.Workspaces(0).Databases(0) # this line BUGS Set db2 =...
  13. marco02

    .RecordCount with query ???

    Can I retrieve directly the number of recordset in a query without looping through the entire recordset ? Why doesn't the .RecordCount work on a query ? Is there a similar property for a query ? thanks so much, marco
  14. marco02

    how to pop-up the FILE OPEN dialog box ???

    IT WORKS !!! sorry for the late answer guys i got sick .... For the next guy, here is the complete detailed procedure: 1) In a Form (whatever form) Toolbox -> More control -> put the "Microsoft Common Dialog Control 6.0" control somewhere in the form. 2) Go in Access VB...
  15. marco02

    how to pop-up the FILE OPEN dialog box ???

    IT WORKS !!! sorry for the late answer guys i got sick .... For the next guy, here is the complete detailed procedure: 1) In a Form (whatever form) Toolbox -> More control -> put the "Microsoft Common Dialog Control 6.0" control somewhere in the form. 2) Go in Access VB...
  16. marco02

    how to pop-up the FILE OPEN dialog box ???

    it doesn't work Kendel, moreover my calling this ShowOpen is not systematic in the procedure. It only happens in the specific case when the default path is not valid. So i don't want to attach it to a button. Would my pbs have tsomething to do with a REFERENCE missing ? (Tools -> References ?)...
  17. marco02

    how to pop-up the FILE OPEN dialog box ???

    i doesn't work Kendel, moreover my calling this ShowOpen is not systematic in the procedure. It only happens in the specific case when the default path is not valid. So i don't want to attach it to a button. Would my pbs have tsomething to do with a REFERENCE missing ? (Tools -> References ?)...
  18. marco02

    how to pop-up the FILE OPEN dialog box ???

    Hi, I'm trying to pop up the FILE OPEN common dialog box for my user. The code below doesn't work! (comes from the "Developer's Handbook: Vol 1) Dim cdl as CommonDlg Set cdl = New CommonDlg cdl.ShowOpen Bugs at the first line. Declaration not accepted !! ... thanks for your help on this...
  19. marco02

    how to pop-up the FILE OPEN dialog box ???

    Hi, I'm trying to pop up the FILE OPEN common dialog box for my user. The code below doesn't work! (comes from the "Developer's Handbook: Vol 1) Dim cdl as CommonDlg Set cdl = New CommonDlg cdl.ShowOpen Bugs at the first line. Declaration not accepted !! ... thanks for your help on this...
  20. marco02

    getting table names of MY TABLES only!

    Hi guys, is there a smarter way to retrieve the names of MY tables in my dtb with SKIPPING all those hidden and MSsystem tables ? This usually works but it's dumb, you will agree ... Set Dtb = CurrentDb For Each Tdf In Dtb.TableDefs If Left(Tdf.Name, 4) <> &quot;MSys&quot; And _...

Part and Inventory Search

Back
Top