Search results

  1. nanscombe

    Updating multiple records on a screen

    If you are using a continuous form, connected to a table or query, the changes to the amended record will normally be saved automatically as soon as the user leaves it to go to another record.
  2. nanscombe

    Updating multiple records on a screen

    Normally the only way for a user to change their mind and avoid saving changes to the edited record is to press the <escape> key twice otherwise any changes will be changed automatically. Do you actually want a user to make changes to multiple records but be allowed to throw away any changes...
  3. nanscombe

    Blank Fields

    Maybe the fields are not Null but simply an Empty, or Zero Length, string? To cope with Nulls and Zero Length strings you could adapt the code thus.. IIf(Len([IncidentType] & VbNullString) = 0,"N/A",[IncidentType]) But still the Control name needs to be different from the field name to avoid...
  4. nanscombe

    Importing txt file with large number

    You might want to try bringing it in as text and using a query to convert it to a Long Integer afterwards.
  5. nanscombe

    Blank Fields

    Precisely. :) You're welcome. :)
  6. nanscombe

    Blank Fields

    A few clues would be useful: What is the name of the control What is the Control Source It doesn't always change the result if the original data is in either the True or False part. Let's take a look at the above example IIf([IncidentType] Is Null,"N/A",[IncidentType]) If IncidentType is...
  7. nanscombe

    How do you do "not in" in access sql?

    The clause 'Not In' is perfectly valid in Access, this should work. Select * from accounts where beg_date between #1/1/2013# and #12/31/2013# and Val(Nz(acctNo)) In (2,3,4,5,7,12,20) and acct_type Not In ('Individual','User','Viewer')
  8. nanscombe

    Blank Fields

    I'm glad that fixed it. The control didn't know where the data was coming from, itself (IncidentType) or from the underlying data column (IncidentType). :)
  9. nanscombe

    Blank Fields

    Simply setting the Control Source of the control to =IIf([IncidentType] Is Null,"N/A",[IncidentType]) should work fine, as long as the control isn't (still) called IncidentType as well.
  10. nanscombe

    Blank Fields

    IIf([IncidentType] Is Null,"N/A",[IncidentType]) I bet your ControlName is IncidentType as well? It's probably a circular reference caused by trying to look at itself, try renaming the control. ;)
  11. nanscombe

    Using a Combobox to Populate a textbox

    Have you changed the Column Count of the ComboBox MainContact to 4 so the values are available? Have you also checked that there is data available in the records you have chosen.
  12. nanscombe

    Multiple Criteria DLookUp Error

    Private Sub SuffixTxt_AfterUpdate() ItemNumbertxt = DLookup("item", "dbo_job", ("[suffix] = Forms![**INPUT]![SuffixTxt]") And ("[job] = '" & Forms![**INPUT]![OrderNumbertxt] & "'")) End Sub I think you are missing a quote here and there. Would it not be ... Private Sub SuffixTxt_AfterUpdate()...
  13. nanscombe

    How to pause code when calling custom message box form?

    Done that. Done that, or when converting a binary string to an integer. intValue = intValue + ((2 ^ intIndex) * abs(Mid(strBinary, 7 - intIndex, 1) = "1") Done that too, recently whilst doing a spot of encryption. Mid(strMessage, intIndex, 1) = Mid(strMessage, intIndex, 1) Xor Mid(strKey...
  14. nanscombe

    Royal Family

    That would seem to be the case, or at least that what George III would have liked of Parliament.
  15. nanscombe

    Royal Family

    English Parliament 1066 - 1706 Parliament of Great Britain 1707 - 1800 Parliament of the United Kingdom 1801 - present
  16. nanscombe

    Royal Family

    Civil list
  17. nanscombe

    How to pause code when calling custom message box form?

    An example based on the method of hiding, then closing, the form rather than just closing it. The example allows for the passing of two values, an Integer (the status) and a Variant (a value). I have wrapped the functionality into a subroutine in a module which can be reused elsewhere. Public...
  18. nanscombe

    How to pause code when calling custom message box form?

    I used to use a global variable but now that TempVars have been introduced I would be inclined to use one of them instead.
  19. nanscombe

    How to pause code when calling custom message box form?

    You could pass any values back using TempVar(s) as in the attached example. I have added some appropriate code to the button form frmStart's command button called cmdClickMe. Private Sub cmdClickMe_Click() DoCmd.OpenForm "msgCustom", , , , , acDialog ' Waits here until msgCustom closes...
  20. nanscombe

    How to pause code when calling custom message box form?

    When opening your form using Docmd.OpenForm you would set the WindowMode to acDialog, this will stop any further execution of the code until the form being opened is closed again. docmd.OpenForm "yourForm",,,,,acDialog
Back
Top Bottom