Recent content by allan57

  1. allan57

    Happy 4th!

    I wish you Happy Independence day there in a America
  2. allan57

    Speed Issue

    Another thing to check for is the criteria fields you are using have indexes
  3. allan57

    Question Stopping Use of X

    Found this on the net: This sample will show you how to disable the little 'X' close button found on the upper right of every window. To do this what we will do is use a couple of API calls to remove the Close menu item from the windows system menu. Doing this will disable the close button...
  4. allan57

    Zero the ID key

    '1 - Delete Table contents first '2 - Compact Database '3 - Store this function in a module and call via debug window e.g. ReSetAutoNumber "YourTableNameHere", "AutoNumberField", 0 This will restart the autonumber field at 0 ReSetAutoNumber "YourTableNameHere", "AutoNumberField", 2000 This...
  5. allan57

    Building a Difficult DateDiff Expression

    Found this function on the net a long time ago, dont know who's code it was originally but it might be worth giving it try (I've not had an occassion to use it yet) Public Function WorkingHours(datBegin As Date, datEnd As Date) As Double ' Beginning and end of the day Const tmecDayStart...
  6. allan57

    Master Table

    edit: Glad its worked for you, just posted this with indentions but you beat me to it. Create the following Table Application_Table_Field_Definitions txtField_Name (text 65) txtTable_Name (text 65) intSequence (integer) txtDescription (text 100) fPkey (yes/no) txtType (text 35) intLength...
  7. allan57

    Master Table

    Try the following link, http://www.access-programmers.co.uk/forums/showthread.php?p=448673#post448673
  8. allan57

    Find Databases with Linked tables

    Create the following two tables:- table 1: Application_Database_Locations Fields: txtDatabase_Path txtDatabase_Name table 2: Application_Table_Connection_Location Fields: txtDatabase_Path txtDatabase_Name txtTable_Name txtTable_Connection Copy the...
  9. allan57

    Continuous Forms

    In the control source of an Unbound text box add your criteria there i.e. =iif([discount was approved for that customer]=true, "Discount approved", "") Replace '[discount was approved for that customer]' with the appropiate field.
  10. allan57

    Unable too update text box

    When you write to a text box using the .Text extension, you are actually updating the control source of the text box directly, therefore only use this method with a bound control.
  11. allan57

    Unable too update text box

    Hi try the following, as the text box is unbound: Private Sub lstFileList_Click() On Error GoTo zz txtReviewComments = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" exit sub zz: MsgBox "Error in function SizeRequestingTeamArray - " & Err.DESCRIPTION End Sub
  12. allan57

    Change backend through code

    Below is the code I use to switch from a live area and a development area, in this example the FE Db connects to two diff live backend databases. The code simply looks for the live backend location and changes its to the development backend area. Obviously you need to create the opposite...
  13. allan57

    Bar in form detail section

    Under form properies change the 'Record Selectors' option to No
  14. allan57

    Close Form Using ESC Key

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) try the following Select Case KeyCode Case vbKeyEscape docmd.close acForm, me.formname End Select End Sub
  15. allan57

    Format dates inside text box with text

    use the Format command, format([DateEntered]+15 , "dd/mm/yy")
Top Bottom