Search results

  1. D

    subset of Where in SQL from code isn't working

    No, using the square brackets, gives the range. try it in the query pane, just to see the results. Alike '[T-Z]%'
  2. D

    data transfer when filling a form

    Private Sub Form_AfterUpdate() CurrentProject.Connection.Execute _ "INSERT INTO tblOne(txtName,txtCity...)" & _ "VALUES('" & Me.txtName & "','" & Me.txtcity....& ")",,129
  3. D

    subset of Where in SQL from code isn't working

    Visual Basic for Applications. exclusive to MS, I believe. I don't know VB, except for the fact, that they are very close in syntax & functionality. But have read, that they are definately, not the same??? Now, you've aroused my curiosity. I have to try the "ALike" statement in ACCess...
  4. D

    Need coding help!

    Referencing a control, has several syntaxes, one is Me("ImageFrame1") so, you can also do this, Me("ImageFrame" & x) so, you can also do this, For x = 1 to 8 Me("ImageFrame" & x).Picture = Me![ImageFile] Next Just to give you some ideas...
  5. D

    subset of Where in SQL from code isn't working

    I would think, Pat's correct. small digression, You said VB, as opposed to VBA, which I'm not familiar with. I don't know the "alike" operator, but I do know the "Like" operator. With Like, you can shorten your code by, WHERE [App Info].[Last Name] Like '[T-Z]*' ...maybe VB, has something...
  6. D

    Iterating thru ALL subfolders

    Or the Object Browser, From the IDE window. In libraries, select "Scripting". Don't forget to create a reference to the, "Microsoft Scripting RunTime" library. From there, you will probably also see, ghudson's suggestion.
  7. D

    Closing Recorsets Left Hanging Open

    I personally grovelli, like many programmers do, have one exit point, where they do all their clean up. Sub FindName() On Error GoTo xxx Dim rst As New AdODB.Recordset rst.Open "SELECT...... Do Until.... ... Loop CleanUp: rst.Close set rst = Nothing Exit Sub xxx: MsgBox err.Number & vbcrLf &...
  8. D

    Hep me understand

    I agree with ghudson, but I'm just curious Rob, What processing would you do, for example? How long will it take to run? how will it impact the current form? As you know, OnLoad, OnOpen etc... are somewhat "involuntary" events. Are these sufficient, to initiate certain processing.(maybe from...
  9. D

    Newbie needs help

    ...can't believe, I left the quotes in!
  10. D

    Filter that displays a message box when nothing is found

    Can we see the whole code? maybe the problems within the logic, of your If statement?
  11. D

    CopyFromRecordset problem - empty rs?

    Is QryName showing the right Name? rs.Open QryName, cn, adOpenDynamic,adLockPessimistic If Not rs.EOF And Not rs.bOF Then Else MsgBox "No current record"
  12. D

    Select case Limitations

    Great Advice, Pat!
  13. D

    Backup and recovery?

    ...or even the internet.
  14. D

    Newbie needs help

    Dim Add As String Dim Length As Integer Add = Val([Address]) Length = Len(Add) Me.[Address] = IIF(Length =3,"0" & "[Address]","[Address]") IIF() is a one-liner, no need for "End If". needs a recipient for the result Lenght data type, was wrong Concatenate with "&", not "+" (prefered)
  15. D

    Formatting the Body of an Email

    strMessage = "Hello, Wuz Up?" & vbCrLf & "Whatcha b'n up to lately" & _ vbCrLf & "Ciao!" or strMessage = txtSalutations & vbCrLF & txtDate & vbCrLf & vbCrLf & txtComments
  16. D

    VBA Prob

    Andy, just curious, is there a reason you want just one module open? Is it too much overhead? You asked, "or no code windows at all". None will open, uless you go to VBE deliberately. To opem manually, you can use Docmd.OpenModule "mdlHours" To close, something like this? Dim mdl As...
  17. D

    Code updates combo box but doesn't update linked subform

    Forgot to add, You don't have a field called "SalariedRatio", why are you surprised, you're getting an error?
  18. D

    Code updates combo box but doesn't update linked subform

    2 small points, Private Sub Form_BeforeInsert(Cancel As Integer) Me.CICustomerID = Forms![NewFrm_qry_CusIns_KeyEvents]![cmbo_KeyEvents] End Sub Private Sub Employee_Button_Click() DoCmd.Close acForm, "NewFrm_qry_CusIns_Employee" DoCmd.OpenForm "NewFrm_qry_CusIns_KeyEvents", acNormal...
  19. D

    Menus visible dependent on user

    Do you have these "Toolbars", as Toolbars or MenuBars. From the properties, tab from the Custom Dialog. Your property for each, may be wrong? Or try the Me.Menu Method?
  20. D

    Disabling Command Buttons

    Yes, GHudson's is a great idea. bit I'm confused also, why your code is not working? I can only assume, you showed part of your code, and there's something in the previous logic, that's throwing it off? I have something similiar, I use regularly for disabling my own Navigation Buttons...
Back
Top Bottom