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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. greenfibres

    removing carriage return from records

    Thanks for the 'clean' idea, I didn't know it existed. Finally resolved my issue with the following code =CLEAN(SUBSTITUTE(cellref,CHAR(13),", ")) :-)
  2. greenfibres

    removing carriage return from records

    Hi, still no joy with this one.
  3. greenfibres

    recording a last modified date/time for a form

    Thanks for your persistence, but no joy either.
  4. greenfibres

    removing carriage return from records

    Hi Remou Sorry, it took me a while to get back to this here's my code UPDATE Cust SET Cust.[Billing Address 2] = FindAndReplace([Billing Address 2],(Chr(13)+Chr(10)),", ") Unfortunately I just get the following message:- undefined funtion 'FindAndReplace' in expression Please note I'm using...
  5. greenfibres

    recording a last modified date/time for a form

    I changed the BeforeUpdate as suggested, but with the same result. I can't find an OnDirty event in the properties... To recap, I basically want to record the last date a record is modified. The solution given works, unless I exit the current record by using the search option as mentioned...
  6. greenfibres

    recording a last modified date/time for a form

    Hi Robert (& Duane & PH) I have added the BeforeUpdate event and it works fine UNLESS the current record is exited via a search box that sits within the form. Then it gives the following message "Run-time error '3020': Update or CancelUpdate without AddNew or Edit" and if I click debug it takes...
  7. greenfibres

    removing carriage return from records

    Hi Binnit unfortunately you have missunderstood the scenario. 1 field (called Address_Line_2) has information stored in multiple lines, created by using carriage return - ie looks like this Keepers Cottage Brooklands Lane And I can't import it like that. It needs to be Keepers Cottage...
  8. greenfibres

    recording a last modified date/time for a form

    Hi Duane I can appreciate that close scrutiny is too much to ask. But, I guess there's maybe only one function in the code that trips up the solution that was given above - unfortunately I don't know enough to work that out. Although it does seem possibly related to a Bookmark function that's in...
  9. greenfibres

    removing carriage return from records

    Hi I have an Access '97 table that has addresses of contacts. Some of the fields have been populated from the Form that is bound to this Table, with second and sometimes third lines of text. I need to export these addresses to a totally different application (probably via Excel) but this new...
  10. greenfibres

    removing carriage return from records

    Hi I have an Access '97 table that has addresses of contacts. Some of the fields have been populated from the Form that is bound to this Table, with second and sometimes third lines of text. I need to export these addresses to a totally different application (probably via Excel) but this new...
  11. greenfibres

    recording a last modified date/time for a form

    That's great thanks. I tried it with a simple form and that works perfectly. I'm now trying to apply it to a much more complex form which doesn't even have a beforeupdate event proceedure! This may be a bridge too far, but I am posting the whole code below, and would appreciate your help in...
  12. greenfibres

    recording a last modified date/time for a form

    Hello all I have a table of contacts which I access through a form. I would like to keep a record of the last time any of the contacts fields (name, address, tel. no., email, etc.) were changed. (I only need 1 field to be changed for the last modified flag to be relevant) Any ideas? Thanks Jim
  13. greenfibres

    removing 'Mr' from cell containing 'Mr Robert'

    Hello again Strangely, when I go back to the query as suggested by Leslie, and then cut and paste PH's suggestion in, it works! :-) Thanks PH. The only thing to fix is when in the ContactFirstName the only entry is Mr. or Mrs. and nothing else - then I get an error in the Title field. Here's...
  14. greenfibres

    removing 'Mr' from cell containing 'Mr Robert'

    Hi PH Here's the code SELECT Left([ContactFirstName],InStr([ContactFirstName]," ")-1) AS Title, Mid([ContactFirstName],InStr([ContactFirstName]," ")+1) AS JustName FROM Customers WHERE (((Customers.ContactFirstName) Like "miss *" Or (Customers.ContactFirstName) Like "ms *" Or...
  15. greenfibres

    removing 'Mr' from cell containing 'Mr Robert'

    Hi PH Unfortunately I just get the message 'The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect.' Can you check that again? Thanks Jim
  16. greenfibres

    removing 'Mr' from cell containing 'Mr Robert'

    Hi leslie Thanks for the reply 1. I tried the select query but the JustName field comes out as an error. Also the Title field will take the first initial from a multiple initial name like J R Hartley, so I ended up using the Where function This is the code I finished up with, but as I said...
  17. greenfibres

    removing 'Mr' from cell containing 'Mr Robert'

    Hello I have an Access table with separate fields for Title Firstname and Surname. Unfortunately many of the Firstname cells include a Title, so the Title is empty and the Firstname reads Mr Robert and the Surname reads Burns. How can I remove the Mr from the Firstname and place it in the...
  18. greenfibres

    #Error in a field that then becomes inaccessible

    I can't copy or do anything (other than delete the whole record) The record has a number of cascading relationships, so deleting is not the preferred option...... but one that looks increasingly like the most likely!

Part and Inventory Search

Back
Top