Re: A2K - help with array search
- From: "Deano" <deano@xxxxxxxxxxxxxx>
- Date: Tue, 7 Feb 2006 10:35:05 -0000
Rich P wrote:
How is the 2D array being populated? What is the data source of the
2D array? Instead of populating a 2D array you should populate
another temp table. Then you can use DLookUp to see if your field
exists in the one table in the other table like this:
tbl1 is your main table, tbl2 is what used to be the 2D array
Dim DB As DAO.Database, RS As DAO.Recordset
Dim str1 As Variant
Set DB = CurrentDB
Set RS = DB.OpenRecordset("tbl1")
Do While Not RS.EOF
str1 = _
& DLookUp("fldz", "tbl2", "fldz = '" & RS!fldx & "'")
If IsNull(str1) Then MsgBox RS!flx & " is not in tbl2"
RS.MoveNext
Loop
Rich
*** Sent via Developersdex http://www.developersdex.com ***
Cheers Rich, I think you're right about that or I could tag the records in
some way. Trying to look up values in an array seems impossible.
.
- References:
- A2K - help with array search
- From: Deano
- Re: A2K - help with array search
- From: Rich P
- A2K - help with array search
- Prev by Date: Search Function
- Next by Date: Re: Search Function
- Previous by thread: Re: A2K - help with array search
- Next by thread: Access 2003 mail merge using DDE
- Index(es):
Relevant Pages
|
Loading