|
-
Apr 21st, 2011, 04:29 PM
#1
Thread Starter
New Member
-
Apr 21st, 2011, 05:01 PM
#2
Hyperactive Member
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
If I am understanding you correctly, you can do a simple query in access using the criteria.
Help with that really depends on which version of Access you using.
-
Apr 21st, 2011, 05:08 PM
#3
Hyperactive Member
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
-
Apr 21st, 2011, 05:12 PM
#4
Thread Starter
New Member
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
I'm stuck with OFFICE 2K3.
And my problem with Access queries is that I don't even know where to begin. Can you perhaps give me an example of this simple Access query you speak of?
Thank you no_one
-
Apr 21st, 2011, 05:23 PM
#5
Hyperactive Member
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
Here's some great places for you to start with access:
http://msdn.microsoft.com/en-us/office/aa905401.aspx
and
http://office.microsoft.com/en-us/ac...010067704.aspx
I would help walk you through it, but I have never used Access 2003, and the menus have changed a lot, and I am on my way out.
http://office.microsoft.com/en-us/ac...010247313.aspx
Basically you want to create a query on the data, and in the criteria you want to specify "not like" and reference the assembly numbers from the other table.
-
Apr 22nd, 2011, 08:22 AM
#6
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
i do not know of a formula to do what you ask, but here is a UDF
put in cell C3 =findnot(b3)
put in module
vb Code:
Function findnot(r As Range) As String Dim fnd As Boolean myarr = Split(r, ", ") For Each t In Range("j2:j15") For i = 0 To UBound(myarr) bounds = Split(myarr(i), "-") If t >= CLng(bounds(0)) And t <= CLng(bounds(1)) Then fnd = True: Exit For Next If Not fnd Then findnot = findnot & t & ", " fnd = False Next If Right(findnot, 2) = ", " Then findnot = Left(findnot, Len(findnot) - 2) End Function
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Apr 22nd, 2011, 10:21 AM
#7
Thread Starter
New Member
Re: [ACCESS][EXCEL] Show only vales that do NOT match?
Thanks for the getting started guides no_one, I'll be looking into those!
Westconn, your macro is perfectly elegant! I literally got chills when I ran it. Thank you!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|