Search results

  1. S

    After Database split, code stops working

    Surely you want to set the cboProjectName to Me.OpenArgs not [ProjectName] ?
  2. S

    How to change backcolour of Control

    Does your control have the same name as the underlying field? This will confuse the Access gnomes. Change your textbox name to txtDateReceived and try again. Me.txtDateReceived.BackColor = vbYellow
  3. S

    Excel file save as from Access VBA

    I think. xlsx.SaveAs FileName:=(strpath), FileFormat:=56 should be objXL.SaveAs FileName:=(strpath), FileFormat:=56
  4. S

    formula in Record Source

    Try , (commas) as separators instead of ; (semi-colons).
  5. S

    Reports are "frozen" in Access

    Check that you have a default printer installed - no printer = no reports
  6. S

    access report header

    Alternatively you could use a label for "FAMILY AND FRIENDS - NAMES AND ADDRESSES" if you want the same text every time. Set this in the caption property of the label.
  7. S

    Option Strict On

    http://www.asap-utilities.com/index.php ASAP Utilities has a tool for stripping out spaces in Excel worksheets.
  8. S

    How to show username automaticaly when a new record is created?

    The code provided goes between the Sub Form_Current() and End Sub code stubs.
  9. S

    Validation for Product Id = Product Name

    You should not store the product name in the InputProduct table. You only store the ProductID as a foreign key - this leads you back to all of the product details in the Masterproduct table. Normalisation 101.
  10. S

    Formatting control in continuous form?

    Changing backcolor of a textbox is possible using conditional formatting. Changing the .visible property of a button is NOT possible in a continuous form (unless every instance of the button hiding/reappearing is acceptable (which I doubt))
  11. S

    Custom Message Boxes

    It can be done using API calls http://vbnet.mvps.org/index.html?code/comdlg/messageboxex.htm Complicated though! A custom form might be easier.
  12. S

    how change fields programmatically ?

    Make sure that your database is in a Trusted Location otherwise no VB coe will run.
  13. S

    Ignoring commas when users enter data

    shabbaranks You have a couple of ticking time-bombs in your db. You are using reserved words for field names - Hour, Project and Description. This may explain why you are having trouble with your code.
  14. S

    How do I use an Ampersand in a field name

    Leaving aside the potential normalisation issues AT&&T (note 2 ampersands) will display a single ampersand in a label's caption. You cannot use it as a field name as has already been posted.
  15. S

    Possible bug - Unexpected prompt to save form

    I presume this message comes up when you close the form? What is your code to close the form?
  16. S

    Code search utility?

    Use the Find that is built into to the VBA IDE?
  17. S

    Conditional format in report does not display

    Does it work correctly in Preview mode and in Print mode? Report view does not run code and other features so that might be the problem.
  18. S

    Are cascade updates neccessary when all your foreign keys are autonumbers?

    Your foreign keys should not be autonumbers. Your Primary keys should and, in answer to your question, if you have an autonumber primary key then cascade updates are irrelevant.
  19. S

    Is it bad to turn off errors in leiu of if statements?

    Personally, I would put the DoCmd SetWarnings True after Exit_cmdRun_Click so that warnings are always turned back on, even if your error-handling block runs. Just my two penn'orth.
  20. S

    VB Error, Expected: end of statement.

    Oops, wrong thread - sorry! (Or has something been edited?)
Back
Top Bottom