Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by WalkieTalkie

  1. WalkieTalkie

    FindFirst syntax

    Hi again You're correct: I was using recordsetclone. I've pasted your code, and the debug.print produces this: [PatientID] Like 'c*' was not found: False And, the first matching record is found. So that's great. Thanks! I repeated the txtGoTo.setfocus so it triggers after the record is found...
  2. WalkieTalkie

    FindFirst syntax

    Thanks, MajP. The first time I tried, it was just resulting in "*". So I modified the code like so: rs.FindFirst "[PatientID] Like '" & txtGoTo.Text & "*'" and now the debug result is: [PatientID] Like 'cn*' but it is still not finding the record on the form. Any ideas?
  3. WalkieTalkie

    FindFirst syntax

    Hi I am trying to use FindFirst to find a record on a form, by entering the ID into a textbox called txtGoTo. The form is bound to a table containing the record. I have searched this site and found the required syntax but still it wont work. What am I doing wrong? Thanks in advance for any...
  4. WalkieTalkie

    Sending email with attachment - can't attach a pdf

    Thanks you! Its so obvious once you've pointed it out! I knew it must be something simple - maybe I was too tired to look at it properly yesterday. Thanks again for your help.
  5. WalkieTalkie

    Sending email with attachment - can't attach a pdf

    Thanks for the quick reply. Good spotting! Sorry, that was me trying to remove confusion in my post by replacing RowerName with AccountName, but now I see I didn't change them all in the post. The real code has RowerName in all instances. More info: I have narrowed it down to something to do...
  6. WalkieTalkie

    Sending email with attachment - can't attach a pdf

    Hi, its been a long time since I last posted, as I can usually find answers by looking through other people's posts. But this time I have a problem which I just cannot solve, despite all the help there is out there. Using Windows 10, Access 2016 and VBA 7.1, with a database that was designed...
  7. WalkieTalkie

    Concatenating text and strings as controlsource for a text box

    Thanks for your help and patience so far and I'm sorry I didn't make myself more clear to start with - I guess I didn't know what I don't know. I want to set the value of the control through code, but don't know how to. I want to do this because I want the value to alter when I click a...
  8. WalkieTalkie

    Concatenating text and strings as controlsource for a text box

    Hi and thank you for such prompt replies. Here are the results for the three suggestions: "= '" & strNewClient & " is now a member of ' & [txtOldClient] & '`s travelling party.'" results in... = 'Practice Client' is now a member of ' Another Client'`s travelling party. - with unwanted...
  9. WalkieTalkie

    Concatenating text and strings as controlsource for a text box

    I always have trouble with concatentaing strings and text and can never work out whether and/or when to use a single or double apostrophe!!! I know this is simple but I just can't get it right... txtInstructions is a textbox on a form in a MS Access 2003 database. I am trying to change the...
  10. WalkieTalkie

    Can't make simple loop work

    Thanks for your patience. It is working fine now and I have learned something as well. Incidentally, I started trying to make it work with a DLookup in the query but couldn't make it work so had given up on it. In answer to your other observations: 1. the 'hard coded' values for the...
  11. WalkieTalkie

    Can't make simple loop work

    Hi again I have done as suggested and it hasn't made any difference! I must still be missing something. Here's my code now: Dim varItem As Variant Dim txtTemp As String Dim strSQL As String Dim txtAmount As Currency For Each varItem In Me.lstDate.ItemsSelected txtTemp = txtTemp &...
  12. WalkieTalkie

    Can't make simple loop work

    Thanks Gammachaser, Andy and Duane, for your help and teaching with this. That all makes sense. I will have a go and let you know when I succeed! I confess I was being lazy by hard-coding the cost values. I have a lookup table with other cost values - when I had this request to add an...
  13. WalkieTalkie

    Can't make simple loop work

    Hi I have a simple loop which I cannot make work - please tell me what I am doing wrong! I have a list box (lstDate) in which the user selects the dates they want. lstDate is bound to tblDate and has 4 columns; ID, Date, HolidayName, Outing. Outing column is Yes/No. If the user picks a date...
  14. WalkieTalkie

    Apply conditional formatting on MouseMove Event

    Thanks for sharing that, MaJp. Its a bt clunky but I can see where its going. Cheers
  15. WalkieTalkie

    Apply conditional formatting on MouseMove Event

    Thanks, Ace. I had read that elsewhere too, but thought there must be a work around. If the AceMan can't do it, it can't be done! Shame, though. It would be good to have the same effect as a hyperlink - showing the user to click on a label for more info. Thanks again.

Part and Inventory Search

Back
Top