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. ITMannie

    'Find and Replace' in SQL??

    You can use Update and Delete queries to do what you're asking for. To change the incorrect names I would set the criteria on the Update query to return the relevant records then set the correct value in the Update To line of the query. Delete queries are even easier to use as you just set the...
  2. ITMannie

    Datasheet Column is AutoIncrementing

    Have you got the data type of the column set to AutoNumber? If so, that would cause the problem. Change it to a Number Cheers
  3. ITMannie

    Access Data into Excel

    Good point Skip. I forgot to mention in my last post that it would be unusual to reach that row limit in Excel. Cheers Iain
  4. ITMannie

    Placing a figure from a query in a textbox

    Hi I think it's also worth mentioning the Domain Aggregate Functions that are available in Access. In particular, the DLookup function would do here. The code would be: txtValue = DLookup("[FieldName]", "QueryName") or you could just set the control source to...
  5. ITMannie

    Access Data into Excel

    John I guess you'll just have to extract the data from Access row by row and keep a count of the number of rows you are importing. When you reach the limit of an Excel sheet, just create another worksheet and assign it to your worksheet variable. Your code would look something like this (I...
  6. ITMannie

    how to call modules from Before Update Event

    I take it your ValidateString function returns true or false. If so I would do the following: 1. On the Access form, select [Event Procedure] for the Before Update event and press the build button (...) 2. In the before update event, put the following (substitute txtField for the name of a...
  7. ITMannie

    How to Import Excel comments to Access database?

    Sandhu I would extract the comments and put them into the column next to the one containing the data - then import them as usual. The macro would be something like this: '================================== Sub ExtractComment() Dim RowCount As Long 'set these constants to suit your...
  8. ITMannie

    Create Word Doc from Access

    Since you have multiple parent/child relationships, you will have to query the data for each parent item and export the data into Word (I would create tables because you can access specific cells). This would be a pain. Have you considered using Snapshot files (this is one of the options when...
  9. ITMannie

    Module Not Found Error Message

    It's not your day - have you tried kicking the crap out of your PC (that sometimes does the trick - at the very least it makes you feel better) I've never had problems with shortcuts other than incorrect paths. Have you got anything unusual in the shortcut? You could try creating a new...
  10. ITMannie

    Password

    Here you go. This was top of the list when I searched on Google. http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20082719.html There are bits of code and useful links. Hope it helps
  11. ITMannie

    Module Not Found Error Message

    It's not clear what the problem is. Sometimes when I get errors that don't have any explanation, I just open a new database and import everything I need from the other database. It can sometimes flush out the errors. Give it a try. Cheers
  12. ITMannie

    Password

    Save your money. I found some code that will return the password on and Access 97 database (don't know about later versions). I will have a look for it again. Keep searching the internet - it is out there. Cheers
  13. ITMannie

    Update and Append date from one table to another

    Gladys You won't get errors unless the data is invalid in some way (i.e. doesn't meet the validation rules or constraints). If your update query links the tables on their key field(s) by the default INNER JOIN, then Access will only update the records that are in both tables. When appending...
  14. ITMannie

    Update and Append date from one table to another

    Gladys I assume you are looking for one query that will do both the Update and the Append. I don't think you can do this. I would create separate Append and Update queries then run them in sequence using a macro. Hope this helps.
  15. ITMannie

    isloaded("zfrmName") returns false on active subform

    You don't have to check if the form is loaded. If you just want to ignore the error you can put On Error Resume Next before you set the value on the subform. So you will have: On Error Resume Next Forms![frmOrderStatus]![zfrmCRM].Form![zfrmCRMNotes].Form![ONote] = Nz(rst!OCmt, "")...
  16. ITMannie

    on not in list code prob

    Glad to be of help. I'm in Glasgow, by the way. Cheers and good luck.
  17. ITMannie

    on not in list code prob

    If you are using Access 97 then you should not have any problem. What is the error that you get?
  18. ITMannie

    on not in list code prob

    Which version of Access are you running? If it doesn't like the Dim db As DAO.Database line of code then you probably don't have a reference to the DAO object library. You can set this through the Tools...References... menu option. Just click on the Microsoft DAO 3.6 Object Library (that's...
  19. ITMannie

    on not in list code prob

    Check that the Limit To List property of the combo box is set to Yes If that doesn't solve it then check that the On Not In List property has [Event Procedure] in it (that can sometimes be missing). Failing that, set up a breakpoint and go through the code step by step. Let me know how you...
  20. ITMannie

    on not in list code prob

    Nick I tried out your code and it worked fine (after I added an End If at the bottom of the code) The table I tried it on only had one field (AEName). Do you have any other required fields that need a value when entering new records i.e. a primary key field that is not an AutoNumber. What...

Part and Inventory Search

Back
Top