Search results

  1. R

    Help with select case statement

    Try this: Private Sub btnFindLocation_Click() 'Define variables Dim callNumber As Integer 'Receive input callNumber = CInt(CallNumberBox) 'Find book Select Case callNumber Case 100 To 199 OutputBox = "The book is...
  2. R

    pretty forms

    Surprisingly I created the form designs in Word, Then screen captured and saved using Paint! Not exactly top of the range products.
  3. R

    Graying out fields

    The code should work as long as all the items are on the same form.
  4. R

    Form size reduction beyond content

    You could try using the form.move property in your OnOpen event forms("FORM1").move(X,Y,Width,Height)
  5. R

    Graying out fields

    You could try a select case statement Private Sub combo_priorart_AfterUpdate() Select case me.priorArt Case "No" Me.PEP.enabled=False Me.PMTCT.Enabled=False Case "Yes" Me.PEP.Enabled=True Me.PMTCT.Enabled=TRUE Case "Unknown" Me.PEP.enabled=False Me.PMTCT.Enabled=False End Select End Sub
  6. R

    pretty forms

    Here's a screenshot from one of my databases.
  7. R

    pretty forms

    You can create your own forms using a graphics program. Choose whatever style you like then.
  8. R

    DoCmd.RunSQL issue

    Just checking, but with Access VBA, isn't it more effective to use Currentdb.execute(SQLStatement) ?
  9. R

    how would you write this

    Thanks GalaxiomAtHome, I have now re-written my Custom MsgBox to be totally self contained so I can use it anywhere. Will post some code in a relevant thread when I have tidied it up a little. Thanks again GalaxiomAtHome.
  10. R

    Free UK Postcode Lookup

    Simple but effective way of turning a postcode into a full address without paying for a subscription. Feel free to use the code, just send a thanks if you like it! Written in Access 2010, but should be fine with 2007.
  11. R

    how would you write this

    I appreciate the notion, however I have found in many situations that a simple global boolean can save hours of work arounds. Simple to Fire a true / false when needed then an exit function command if the value is False. Sorry, I'm a completely self-taught programmer so I probably don't stick...
  12. R

    Custom Msgbox example

    After days of searching for a solution to my problem I decided to tackle it head on and create my own. Why does Access not let you format a msgbox? Never mind, here's my solution for you to use as you wish. This is tested in Access 2010, but should be compatible with 2007 aswell. Rich.
  13. R

    Hello

    Hello everyone. Been Access programming for years now, and only just scraping the surface of this awesome application. For the first time in ages I can say THANKYOU to Microsoft! Happy to help with any queries you all have. And any Freelance work that's hanging around, let me know! :) See...
  14. R

    Need to Hire Help

    Hi, Not really local to you, in fact probably as far away as possible in the UK. But would be happy to help you out. What project are you working on? Rich
  15. R

    How to create msgBox with button label Yes(Y) and No(N)

    Slight change of thread, but thought this may be of use. I've been searching all over for a way to customise a msgbox but there doesn't seem to be a solution. I therefore wrote my own. Hope this may be of use to someone. I've only written in options for up to 4 buttons, but the form / code can...
Back
Top Bottom