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 Wanet Telecoms Ltd 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: djmc
  • Content: Threads
  • Order by date
  1. djmc

    Execute VBA code upon quitting application.

    How do I get my ms access application to execute vba code when the application exits? (i.e do something before exiting)
  2. djmc

    Import Specifications in MS Access

    Suppose my CSV file forms a table like this: COL_1,COL_2,COL_3 a,b,c d,e,f I want to import the csv file into the following table structure in MS Access: COL_2 | COL_1 | COL_3 ---------------------- b | a | c e | d | f ---------------------- How can I create a specification...
  3. djmc

    Importing .sql files over to an Access table

    I have an .sql file which is about 75MB in size. It consists of INSERT statements with the values I need to import into an Access table. Is there an easy way to import this on the fly like via a DoCmd statement or should I just parse the file line by line and execute these insert statements to...
  4. djmc

    Export in CSV format with DoCmd.OutputTo

    I would like to know how I can export to CSV format using the DoCmd.OutputTo function in VBA. I know how to do it in .xls format but not .csv. As well I know that when a file name is not specified in the arguments, a window will popup asking you where you would like the file to be saved in. How...
  5. djmc

    Accessing excel spreadsheet via MS Access

    Here is my current situation: - Creating an Access app which relies on a series of Excel spreadsheets, each of which contains serveral worksheets. - Given a form, user inputs a set of values, these values are then used to query the set of worksheets within the spreadsheets and generates a set...
  6. djmc

    Date arithmetic with specific format.

    Hello, Suppose I have Tue 9:00 PM I want to do a subtraction and return the number of seconds. i.e Tue 9:00PM - Tue 6:00 PM returns 180 Also consider rollover i.e Wed 1:00AM - Tue 6:00 PM returns 25200 Thanks.
  7. djmc

    Subtracting two times.

    Let's say I have some data I parsed. And the time format is the following: hh:mm:ss (24hr format) i.e 15:13:09 I want to subtract the two times and get an overall duration value. i.e 10:00:00 - 9:30:00 = 00:30:00 or something of that nature.. thanks.
  8. djmc

    Working with Collection object

    Hello, I have a function which contains two different collection objects. Given the name and key it will return the value if it exists or nothing if it doesnt. However, VBA prompts me with an error if we attempt to retrieve the value with a non existent key. I was wondering how to get around...
  9. djmc

    Split function in VBA for Access 97

    I am trying to convert my Access 2000 mdb to 97 and run the modules and found that there are some problems with using the split() function. Its telling me that it doesnt exist. Do I have to implement my own Split() ? Thanks.
  10. djmc

    How to refresh Progress Bar while reading records

    Hello, I have a function in a module which executes to do stuff while reading a record set. It also opens a form which shows the progress of the record reading, however it is not refreshing until records have been all read. Public Function fCheckRating() Dim db As DAO.Database Dim rst...
  11. djmc

    Creating a Collection through assignment

    Hello, I understand you can create something similar to a hashtable in VBA called a Collection and that you can use the add function to add key,value pairs. I was wondering if there is a way to create a static Collection object without using the add function. Like myCollection =...
  12. djmc

    How to create a static Collection (lookup table object)

    Hello, I understand you can create something similar to a hashtable in VBA called a Collection and that you can use the add function to add key,value pairs. I was wondering if there is a way to create a static Collection object without using the add function. Like myCollection =...
  13. djmc

    parent.leftframe reference does not work in Mozilla 1.5

    Hi. I have a button with an onClick event which assigns a value to a textbox located on a left frame. This code works on IE browsers but on Mozilla it does not execute that command. this is the function function addToCart() { alert("adding to cart")...
  14. djmc

    Setting default page orientation on Access application.

    How do I set the default page orientation for the Access application everytime it loads up. (i.e Landscape or Portriat) I already have a function in my modules which is set to load during startup of the application.
  15. djmc

    Does VBA allow null parameters?

    Does VBA allow null parameters? Because when I passed in a null parameter it says "invalid usage of null" right at the function call (it did not even go into the function body code). However when I called it using vbNullString it works but if i pass in lets say a textbox variable name...
  16. djmc

    Validate and filter incorrect parameters.

    I have a form which lets the user search for things. Depending on a combo box, the parameter could be a text or number. The search function will generate the querie corresponding to the combo box/parameter. I would like to know what is the conventional way of filtering a textbox before it gets...
  17. djmc

    combo box problem

    I have a combo box which could have 2 different record sources, I set these record sources dynamically which is dependant on another combo box choice. One record source has 2 columns shown in the combo box the other has 1. When I first get the combo box to uses the recordsource which contained...
  18. djmc

    How to check if there are other forms opened

    How do i check if there are other forms opened (other than the current one). I want to prompt the user to close off all forms before proceeding with the task on the current form im in.
  19. djmc

    Textbox field update

    I have a textbox and I would like to know how I can show the updated text as the user types in the textbox. i KNOW you can do this by appending each keystroke you type in but there are flaws in that method. (i.e if user highlights and deletes portion of the text it wont update correctly since it...
  20. djmc

    Compacting backend database in the frontend.

    I splitted my access application into frontend and backend. I would like to know how I can compact my backend database from my frontend via a button click.

Part and Inventory Search

Back
Top