Search results

  1. aikea

    Search Coding

    Create a query contains the columns you need. Type in forms[formname]!txtname at Criteria row in the column where you want the name to be searched. Create a subform or listbox bound to this query. add this in the click event of the search button: listbox.recordsource = ""...
  2. aikea

    Code for Opening Query Based on User Criteria

    You can use currentData.AllQueries to list all available queries to a listbox. Once user click a queryname in the listbox the query will open. when the listbox is clicked The query you want to display perhaps have similar name like "qrySales2003, qrySales2004" for example. Change criteria so...
  3. aikea

    Access can't remember where it put it's references

    That may also because your right on your pc expires after a certain time period, or may be the library file is located at a remote location.
  4. aikea

    Compare two Arrays

    Thank you all for your reply Both arrays are contains random numbers, but they can be sorted. Example #1 Array1 {1,2,3} Array2 {1,1,2,2,3,3} By comparing two arrays, the result should tell that the second array has two copys of the first array. Example #2 Array1 {1,2,3} Array2...
  5. aikea

    Compare two Arrays

    Well, If I combine array1 {1,2,3} I will get "123" and If I combine array2 {1,1,2,2,3,3} I will get "112233" I am not sure how you can compare this two, they are two different strings.
  6. aikea

    Compare two Arrays

    I was trying to compare two arrays, to identify whether one contains another Both arrays are sorted, for example: Array 1: {1, 2, 3} Array 2: {1, 1, 2, 2, 3, 3} There are two copys of Array 1 in Arrary 2. I wonder how could I make the comparation possible, for example: I can built two...
  7. aikea

    External Interface or API

    Yes, you can use Windows API in your VBA code.
  8. aikea

    Auto-incrementing field

    You can have a separated field in your database like "Serial" for example to record the a human readable serial code for your data. The ID and the PK are only for computers.
  9. aikea

    How To: Access 'Query' screen in read-only mode

    You need set user permission to only "Read" an object, disable "Write". Use "Tools->Database Security".
  10. aikea

    Very basic user login system

    MS Access has a built in authentication feature since the first version. If you are using 2003 then use "Tools->Database Security". If you are using 2007 version, try to find user permission command from customise tab dialogue. After you set security, every time some one open the database, he...
  11. aikea

    Merging Databases

    Import tables (either link or data) from your other database. Create a query that insert each record from the imported table to your master database table. Make sure you do not select the ID field. New inserted record will have its own ID assigned by Access if you are using Auto Number type as...
  12. aikea

    Backup In VBA

    Use DoCmd.OutputTo command. But I am not sure this command is available in A97
  13. aikea

    Trap access messages that don't have numbers!

    Is that really an error message? You can make yourself a function that replace or delete "0-9" characters in a string. For example: msgbox(errorWithoutANumber(err.Description))
  14. aikea

    Access 2007 cannot open Word 2003 docs

    You need word to open a word file. You may see a embeded word file open in Access or Excel, but I can asure you that machine has word installed.
  15. aikea

    letter from database

    If you send your letter via email, security is not a problem. Your client will see the link. If he use outlook, he has to press ctrl key then click that link to open it. You can send yourself an email, to test how it works. Different email agent react differently to embeded links.
  16. aikea

    Determine Which Textbox has Focus

    Create a public sub, then link all your textboxes ongetfocus property to that sub. Trust me, this is the only way to do it, I did the same thing 2 years ago.
  17. aikea

    letter from database

    If you have Word or OutLook, you can use "Mail Merge" from tools menu.
  18. aikea

    Getting Access to output HTML

    Use "DoCmd.OutputTo" command. Check Access help file for parameter explanation. You can't export chart with this command
  19. aikea

    Edit A Record Via Form

    I think you need some serious VBA and ADO lesson. Add a new record in ADO is quite basic for an Access developer. Dim rs as new adodb.recordset rs.activeconnection=currentproject.connection rs.source=tablename rs.open do while not rs.eof if rs["id"].value = idyouaresearching then...
  20. aikea

    Edit A Record Via Form

    Check out the database attached. You search table "Book" by book id and represent result in a list box.
Back
Top Bottom