Recent content by antomack

  1. A

    Check to see if 72 hours

    Essentially the only entries affected by the weekend hours are those entered on Wednesday, Thursday or Friday so the following should provide what you need. Use the following where clause WHERE (((((Now()-[user_time])*24)-(IIf(Format([user_time],"ddd") In ('Wed','Thu','Fri'),48,0)))>=72)) or...
  2. A

    How to secure table data? A2K

    I am in the process of building a stand-alone version of our company's quotation package for distribution to our sales force. The system currently reads the required data from an internal Oracle database but I am changing it to read from an Access database. The issue I want to solve is that the...
  3. A

    Environ

    I use the following module to get computer ID, user name, user full name, IP address, etc using API. HIH. Option Compare Database Option Explicit Declare Function wu_WNetGetUser Lib "advapi32.dll" Alias "GetUserNameA" (ByVal sUser As String, nBuffer As Long) As Long Declare Function...
  4. A

    How to add fields to a table after a form has been created.

    You need to make the changes to the table first, then open the form and the new fields should appear for selection in the control source property.
  5. A

    Updata data from into a table

    To do what you ask would require the use of an update query to recalculate the balance but overall your current design may not be best suited to the situation. UPDATE YOURTABLE SET Balance = Balance + iif(TransactionType = 1,TransactionAmount, TransactionAmount * -1) Possible Better Design...
  6. A

    Auto-numbering gone haywire!

    Generally to reset the auto-numbering you need to empty the table and then compact the database. The compacting generally resets the autonumber to start from 1.
  7. A

    if (x like *Y) then?

    You could use the InStr function to check if the required string is contained in the tag. See the Access help file for details on the Instr function.
  8. A

    Combo box selection for query

    You need to remove the quotations from around the [Forms]![School]![ClassCombo], otherwise you are asking the SQL to return all records where ClassID equals a string of [Forms]![School]![ClassCombo] rather than taking the value from the combobox.
  9. A

    Make user select from a drop down list if a number in another field is entered?

    You need to check if the Absence_Reason is null as follows ISNull(ABSENCE_REASON) OR ABSENCE_REASON=""
  10. A

    How to Backup (run code) weekly and monthly

    Do a search on the internet for Scheduled Tasks, it is an in-built functionality of Windows so Microsoft might be a good place to start looking. A sample of instructions from Microsoft is http://support.microsoft.com/default.aspx?scid=kb;en-us;308569&sd=tech
  11. A

    Random Auto Number

    Look up randomize and Rnd in your help file, the following formula should give you what you need, a number between 1 and 99,999,999 with leading zeros. format(((99999999 * Rnd) + 1),"00000000")
  12. A

    AutoInsert Field into another form using command button?

    You can use the DataEntry property of the openform method in code to set the form to open for adding data only, this will stop it displaying any current records. You then need to set the values of the employeeID to the value from the opening form, and lock this field so the user cannot overtype...
  13. A

    How to Backup (run code) weekly and monthly

    You can use Scheduled Tasks on a PC to open an Access database to run whatever needs to run. You will need to build the db to automatically run the required code either through the startup or a macro.
  14. A

    Attention To The Best Access / VB Programmers In This Forum

    Just a few things first 1) The invoice you provided in your sample database is not properly defined for your tables, it is still using the tables from the 'Order Entry' database. You will first need to substitute the Order and Order Details tables with your Quote and QuoteDetails tables and...
  15. A

    Hiding Access ==> Must be a sort of Normal Program

    Check out this post for details on hiding the Access background so the form appears against the desktop. http://www.access-programmers.co.uk/forums/showthread.php?t=100545
Back
Top Bottom