Search results

  1. boblarson

    Help with Error 6

    Additionally, I would change your variable name from intServid to lngServid just to keep it consistent with what the type is. Some people don't use the prefixes. I find they help me quickly identify something but it is important to pick a method and then be consistent with it.
  2. boblarson

    Help with Error 6

    In your code: Private Sub ServID_DblClick(Cancel As Integer) Dim intServid As Long If Not IsNull(ServID) Then intServid = Val(ServID) DoCmd.OpenForm "frmServiceOrder", OpenArgs:=intServid End If End Sub
  3. boblarson

    Help with Error 6

    Change the declaration to be a LONG INTEGER.
  4. boblarson

    Help with Error 6

    Check your values by setting a break point and hit F8 to step through. Let me know if you don't know how to do that.
  5. boblarson

    Display the value of control within a pop-up form

    Boy, I was paying attention, wasn't I? :banghead:
  6. boblarson

    Display the value of control within a pop-up form

    In the click event of the button, after it opens the form, use Forms!PopUpFormNameHere.FieldNameHere = Me.FieldNameFromFirstForm And I suggest NOT using special characters (nor spaces) in your field and object names. Use ClaimNo or ClaimNum instead of #. Special characters and spaces in...
  7. boblarson

    Help with Error 6

    So Access doesn't think you have a variable there, it might be wise to use the ME keyword and instead of the Not IsNull you can just use the NZ function. intServid = CInt(Nz(Me.ServID,0))
  8. boblarson

    how to insert multiple conditions/criteria for a field.

    Do they accept NULL values? If not, you may need to wrap the NZ function around the parameters you are passing.
  9. boblarson

    #name? Unbound text box calcualation using two other unbound text boxes

    You will likely need to use the same functions that those text boxes use in that other text box instead of referring to the text boxes.
  10. boblarson

    Performing a Compact&Repair on both FE and BE

    When you do a Compact and Repair, what is happening behind the scenes is that the database file is copied (but not in the normal way) and then the old datbase file is deleted and the new one renamed. So, if it is open, it can't do the process. What you will need to so is probably use a...
  11. boblarson

    #name? Unbound text box calcualation using two other unbound text boxes

    Are those controls bound to any fields? If so, try using the name of the field instead of the control. (also rename your controls to something useful so someone coming in, after you are gone (or you coming back 6 months later), looking at text42 won't wonder what that means.
  12. boblarson

    Windows 8 Object Library for Excel

    Did you remove the reference to Excel in the VBA References? You need to do so if you go with the code I gave. Post the code you are using which ends up causing the error. And note on which line it fails.
  13. boblarson

    Calculated Fields

    defaults only work for new records. Existing records would need to have an update query run to set the field to 0 if null. If you aren't using a web database, I suggest NOT using calculated fields but do it in a query. That is a "best practice" as an FYI.
  14. boblarson

    Windows 8 Object Library for Excel

    You should move to LATE BINDING. Don't set a reference and use code like Dim objXL As Object Set objXL = CreateObject("Excel.Application") There is more to it but I have an export example on my website which shows it in use without setting a reference. If you don't set a reference...
  15. boblarson

    Runtime error 13 type mismatch

    Two things 1. Take the quotes off of strCriteria when opening the form DoCmd.OpenForm "frmContacten",,, strCritera 2. It looks like you have a Plaats line in your criteria twice.
  16. boblarson

    Subform black bottom edge

    1. Make sure the Border of the Subform Control (control on the main form which houses/displays the subform) is set to Transparent. 2. Make sure that same control has its Special Effect property set to FLAT.
  17. boblarson

    how to insert multiple conditions/criteria for a field.

    You don't put it in the criteria. I think you mean parameters but what is the function MinofList anyway? That doesn't sound like a built in function of Access. If you have the code for it, post it.
  18. boblarson

    "connection cannot be used" error on production but not development

    Questions: 1. the development machine AND production both have SQL Server 2012 on it? 2. What version of Windows are you using? 3. The copy of the database is the same and the install options for SQL Server 2012 were all the same in both environments? 4. You have a separate File DSN for...
  19. boblarson

    Label text show/hide condition with check box value

    You can't do it in the Open event of the Report. You need to use it in the ON FORMAT event of the section where those controls are located. Also, use the ME keyword before the control names like in this code below. Also, you can shorten your code and get rid of the If just by doing it like...
  20. boblarson

    "connection cannot be used" error on production but not development

    Are you using the latest ODBC Driver? That would be SQL Native Client 11 but I believe that you would need that driver on each machine in order to use it. Not sure if it gets pushed out by Windows Updates.
Back
Top Bottom