I ianking Registered User. Local time Today, 21:12 Joined Mar 15, 2008 Messages 29 Aug 3, 2008 #1 Hi, I need to create a query using two tables which matches the first twelve characters in a string, but ignores the last one. eg 9781904024415 in field1 of table1 matches 9781904024419 in field1 of table2
Hi, I need to create a query using two tables which matches the first twelve characters in a string, but ignores the last one. eg 9781904024415 in field1 of table1 matches 9781904024419 in field1 of table2
sbenj69 Registered User. Local time Today, 15:12 Joined Dec 4, 2007 Messages 76 Aug 3, 2008 #2 Left([yourtextfield],12) or alternately: Left(Str([yourtextfield]),12) in the event that it's a number, you will need to convert to string first
Left([yourtextfield],12) or alternately: Left(Str([yourtextfield]),12) in the event that it's a number, you will need to convert to string first
ajetrumpet Banned Local time Today, 15:12 Joined Jun 22, 2007 Messages 5,628 Aug 3, 2008 #3 just to add, you'll have to use a subquery as well to return the records you wish from either table of matching quality.
just to add, you'll have to use a subquery as well to return the records you wish from either table of matching quality.
Brianwarnock Retired Local time Today, 21:12 Joined Jun 2, 2003 Messages 12,667 Aug 3, 2008 #4 Perhaps if its a number you could try Int([field]/10) Brian
ajetrumpet Banned Local time Today, 15:12 Joined Jun 22, 2007 Messages 5,628 Aug 3, 2008 #5 Perhaps if your Brian, you could do it by brain waves. =)
I ianking Registered User. Local time Today, 21:12 Joined Mar 15, 2008 Messages 29 Aug 3, 2008 #6 thanks sbenj69 said: Left([yourtextfield],12) or alternately: Left(Str([yourtextfield]),12) in the event that it's a number, you will need to convert to string first Click to expand... Worked a treat (with subquery) - many thanks!
thanks sbenj69 said: Left([yourtextfield],12) or alternately: Left(Str([yourtextfield]),12) in the event that it's a number, you will need to convert to string first Click to expand... Worked a treat (with subquery) - many thanks!
sbenj69 Registered User. Local time Today, 15:12 Joined Dec 4, 2007 Messages 76 Aug 4, 2008 #7 glad I could help