Search results

  1. C

    Delete Button

    ok bob cheers I assume it would be some sort of docmd.HideButton IF basRunFirst name change to basRunFirst1 lol ? Not that good at Dbase ________ Geo/Chevrolet Tracker History
  2. C

    Delete Button

    Hiya guys Can I have a button on the main menu of my form in Demo Called (Register Serial) and lets say something like - Delete Button from form Demo if module renamed to basFirstRun1 instead of basFirstRun? That way, when the Dbase is in Full Mode not Demo the button will be removed ________...
  3. C

    Ambiguous Name Detected

    Don't know if this is right or not, but I change it from Function IsLoaded(ByVal strFormName As String) As Boolean to This Private Function IsLoaded(ByVal strFormName As String) As Boolean Compiled it, and no errors? ________ DESIGN HOST
  4. C

    Ambiguous Name Detected

    I deleted the Code from Utils Module - Function IsLoaded(ByVal strFormName As String) As Boolean And all the other Isloaded works fine, no compile error.. So it defo this one thats the issue but dunno what to do with it ________ Vapor tower vaporizer
  5. C

    Ambiguous Name Detected

    I have no Idea lol This is my Global Code Function IsLoaded(ByVal strFormName As String) As Integer ' Returns True if the specified form is open in Form view or Datasheet view. Const conObjStateClosed = 0 Const conDesignView = 0 If SysCmd(acSysCmdGetObjectState...
  6. C

    Ambiguous Name Detected

    So what should I do with the Isloaded comments? Do I keep both these Function IsLoaded(ByVal strFormName As String) As Boolean Function IsLoaded(ByVal strFormName As String) As Integer and remove this one Private Sub Form_AfterUpdate() If IsLoaded("Workorders by Customer") Then...
  7. C

    Ambiguous Name Detected

    No don't have any module named Isloaded Not sure if the IsLoaded is in any other module Its being called in from a form if that helps lol? I've got about 21 Modules, you need me to go through them all? I did find this one in a module called Utils - Function IsLoaded(ByVal strFormName As...
  8. C

    Table Locked by User or Process

    Hiya bob The code is being executed from VBA behind a form The Record source is based on a table I got around the problem just now tho by renaming the module instead Seems to work.. You have a proper way? ________ Vapir No2
  9. C

    Ambiguous Name Detected

    Hiya guys Just went to compile Dbase to make accde and got the error Ambiguous Name Detected - IsLoaded [CODE] Private Sub Form_AfterUpdate() If IsLoaded("Workorders by Customer") Then Forms![Workorders by Customer].
  10. C

    Code to Delete Module

    One last problem I got is - Can I have a button on the main menu of my form in Demo Called (Register Serial) and lets say something like - Delete Button if module renamed to basFirstRun1 instead of basFirstRun? That way, when the Dbase is in Full Mode not Demo the button can be removed...
  11. C

    Code to Delete Module

    Ah ok, cheers m8 ________ IOLITE VAPORIZER
  12. C

    Code to Delete Module

    Bob m8, I could kiss ya lol You've been a true star to me.. Its taken me 12 months to develope this Dbase and you've helped for 90% of it lol Could'nt have done this without your help and everybody else's, your a true legend m8 I've been stuck on this Mismatch error on a few forms in my...
  13. C

    Code to Delete Module

    Hiya m8 Ok, I've added everything into my DB now and its almost working perfectly, but I get 1 error Error 13 Type Mismatch "tblLicense" Set MySet = MyDb.OpenRecordset("tblLicense") Heres the whole code Private Sub Form_Close() Dim MyDb As Database Dim MySet As Recordset Set MyDb =...
  14. C

    Table Locked by User or Process

    Hiya guys I'm trying to rename a few things using code - DoCmd.Close acModule, "basValidate" DoCmd.Close acModule, "basRunFirst" DoCmd.SetWarnings False DoCmd.Rename "OldAutoExec", acMacro, "AutoExec" DoCmd.Rename "OldtblDateFlagged", acTable, "tblDateFlagged" DoCmd.Rename "OldtblLicense"...
  15. C

    Varible Not Defined

    Getting Variable Not Defined Error Option Compare Database Option Explicit Dim fs As New FileSystemObject Private Sub Command1_Click() Set fs = CreateObject("Scripting.FileSystemObject") fs.CreateTextFile "C:\Demo\TEST.txt" 'Create a file - change this to any directory you wangt to hide the...
  16. C

    Code to Delete Module

    The extra security feature this has, is it creates a Temp Folder in the C Drive with a Txt file.. If that folder or File is deleted or Not copied to another pc then the Dbase will popup a message saying its pirated.. So rather than having that folder saved to C:\temp, I could hide it in the...
  17. C

    Code to Delete Module

    ok, I've had a look. I had a sample Dbase on my PC that had something similair Here is the Module Option Compare Database Private Declare Function apiGetComputerName Lib "kernel32" Alias _ "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long Public Function fOSMachineName()...
  18. C

    Code to Delete Module

    Cheers Nigel I'll have a look now,, Any chance you can give step by step guide? lol I'm not that gr8 coding n such like.. How would I ask it to lookup Computer name? ________ AdorableBrina
  19. C

    Code to Delete Module

    Hiya m8 Cheers for the comments You've brought up a good point that has also slipped my mind I haven't deleted the whole Autoexec.. I have renamed it to DemoAutoexec and replaced this with a (Full Version) autoexec But I see what you mean tho, I need something in the FullAutoexec to...
  20. C

    Code to Delete Module

    Hiya guys Thanks for the ideas and help I managed to get something going myself tho I have managed it roughly like this I currently had Autoexec for my Demo I created a new one (Without the Startup() Function) called it TempAutoexec On the button I created - Unlock Demo I added an...
Back
Top Bottom