Recent content by !Blue

  1. B

    Query In String Variable

    And if you want it to look neat... Dim sql as string sql = _ "SELECT ProductGrp.Product AS ProductName, " & _ "(SELECT TOP 1 ProductSale.Values FROM ProductSale WHERE (((ProductSale.Types)=""3"") " & _ " and ...."
  2. B

    SQL code/Query Question

    Ok - not withstanding that normally you would expect that for a table of people - person_id would a primary key and therefore have no duplicates... you could try concatinating person_id and lastname then checking for > 1
  3. B

    Replace Function used in a query

    Or even Left([string],5) & Replace([string],",","&",5,1)
  4. B

    Microsoft Access was unable to create an MDE database

    Check the mdb file format is 2003 or later...
  5. B

    Database Replication Problem

    Have you tried compacting the database before replication..?
  6. B

    Sending mouse clicks in code

    FileSystemObject, Folder etc... are defined in the Microsoft Scripting Runtime - therefore if you add a reference to this your code will compile without the need to change these types to Object...
  7. B

    One line subroutine does not run...

    I'm regretting putting that word in... Yes the form is instantiated when it is open - but the code inside doesn't know that... you could have instantiated many instances of the form - the code inside wouldn't know which one you were referring to... Hopefully that goes some way to explaining...
  8. B

    One line subroutine does not run...

    Yes - you can only run code like this from a standard module... the form is effectivly a class module - which requires instantiation before its code becomes active
  9. B

    Chisled effect characters

    Midmented - thanks - this appears to be the best workaround for all practical purposes - setting the control width to 0 seem to prevent the user from accidently placing the cursor in the control (I tried hard - but couldn't do it...) Being a bit of a pureist - I don't like having seemingly...
  10. B

    Chisled effect characters

    Hi fredalina, thanks also for having a go - I'm aware I'm not going to find Enabled=False for a Label - thats not the focus of what I'm trying to do... the effect is the focus. I want its behaviour & appearance to match that of another Label on the Form that is attached to a control that is...
  11. B

    Chisled effect characters

    Thanks for having a go wazz - but obviously not what I was after... appears to be a tricky one that might seem easy on the surface... new ideas - anyone..?
  12. B

    Chisled effect characters

    On a Form - if I have a Label attached to a Control (say Textbox) and I set the Control property Enabled=False - the text in the Label appears faint & chisled - all well & good... Q: Anyone know how to create this same effect in a Label that is not attached to a Control..?
  13. B

    DLookup problem

    Yes the () is required... Declares a byte array instead of a byte... The guid is stored as a byte array...
  14. B

    DLookup problem

    This produces a result... Public Sub Blue() Dim txt As String Dim a() As Byte a = DLookup("rid_Database", "tblDatabases", "[sDatabaseShortForm]='3CONP'") txt = StringFromGUID(a) End Sub
  15. B

    DLookup problem

    Does 3CONP have a trailing space in the table..?
Top Bottom