Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32
  1. #31
    DesoxyN is offline Novice
    Windows 10 Office 365
    Join Date
    Jan 2023
    Posts
    12


    Quote Originally Posted by Gicu View Post
    Hi,

    I have made some changes to the file that I think would make it faster. Because you would be using this to add new records I think it would make sense to save with each record the combination qualifier (basically the search entry in format <Label1 Label2 Quantity:Label1 Label2 Quantity:....>. I know some will say that it goes against the normalization rules but it is accurate at the time of the data entry. Doing this would save having to dynamically build that qualifier for every combination every time you do a search using the slow qryCombinationCondensed query. We are now checking for the existence of the search string straight into the table SHUNK_DATA_NEW.

    I also added some code to validate the search string to look for new entries in Label1 (notice I don't use spaces in field or object names as it makes it easier to program against them, no need to wrap them in square brackets) - that would have help you spot the misspell earlier today.

    As for tutorials I think you should start with reading about database normalization first, then start with some basic SQL and VBA tutorials, I don't have specific ones but Google would give you plenty of options (I have some nice Access resource links on my website but I haven't updated that in quite a while).

    Cheers,
    Hi, the latest version works much better, thanks for the latest modifications. Have some ideas for if and when you could take a look at it;

    1- Empty search pops out a runtime error.
    2- Instead of having the combination id with the SK* prefix, it would be much better to have them just 1,2,3 etc. I rewrote the first part of the database to give you an example, you also don't need to add the whole database, just the ones in the example database would suffice as I will go through all the combinations one by one because the database already has some duplicates.

    exampledatabase.zip

  2. #32
    Gicu's Avatar
    Gicu is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,122
    Here you go.

    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-03-2019, 09:26 AM
  2. Form search code OR and AND combination.
    By orinoko0 in forum Programming
    Replies: 15
    Last Post: 09-21-2018, 08:30 AM
  3. The search key was not found in any record
    By virtualprg in forum Import/Export Data
    Replies: 46
    Last Post: 08-26-2014, 10:51 AM
  4. Replies: 7
    Last Post: 04-17-2013, 04:33 PM
  5. Import search key not found
    By patjivan in forum Import/Export Data
    Replies: 0
    Last Post: 12-13-2011, 12:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums