473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

3D Block Model - Referencing adjacent blocks (records)?

G'day,

I have a table of records representing a 3D block model of an orebody, such that each block has X, Y, Z and then properties (grades), such as Ni, RecNi, Cu etc, as well as 2 volume fields, MinVol and DilVol. Each block is 20m apart in X, 20m apart in Y and 10m apart in Z.

So 2 adjacent blocks would have coordinates:

X(8510), Y(19500), Z(100)
X(8530), Y(19500), Z(100)

I am trying to write an update query that takes each record that has RecNi>=0.18, and looks at the record (block) next to it, and depending on the value of RecNi being <0.18 in the adjacent block, will add 1000 to DilVol and subtract 1000 from MinVol.

I have been trying to use DLookUp as such:

Field:
DLookUp("RecNi","3DBlockModel","[X]=" & [X]+20 And "[Y]=" & [Y] And "[Z]=" & [Z])

Criteria:
<0.18

but this does not return any value. Is my syntax wrong?

Thanks for any help,

Jimbo.
May 23 '06 #1
1 2216
PEB
1,418 Expert 1GB
G'day,

I have a table of records representing a 3D block model of an orebody, such that each block has X, Y, Z and then properties (grades), such as Ni, RecNi, Cu etc, as well as 2 volume fields, MinVol and DilVol. Each block is 20m apart in X, 20m apart in Y and 10m apart in Z.

So 2 adjacent blocks would have coordinates:

X(8510), Y(19500), Z(100)
X(8530), Y(19500), Z(100)

I am trying to write an update query that takes each record that has RecNi>=0.18, and looks at the record (block) next to it, and depending on the value of RecNi being <0.18 in the adjacent block, will add 1000 to DilVol and subtract 1000 from MinVol.

I have been trying to use DLookUp as such:

Field:
DLookUp("RecNi","3DBlockModel","[X]=" & [X]+20 And "[Y]=" & [Y] And "[Z]=" & [Z])

Criteria:
<0.18

but this does not return any value. Is my syntax wrong?

Thanks for any help,

Jimbo.
Hi,
As Field try the following:

DLookUp("RecNi","3DBlockModel","[X]=" & Str([X]+20) And "[Y]=" & Str([Y]) And "[Z]=" & Str([Z]))

Hope that works!

:)
Have a nice day!
:)
Sep 9 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
1
by: ronvhill | last post by:
I am encountering an error on the following code. Basically, I have two queries which I am using to enter new records into two other tables, one a master and the other a child. Function...
6
by: jstaggs39 | last post by:
I want to create a Dcount and an If...Then...Else statement to count the number of records in a table based on the date that is entered to run the form. The If....Else statment comes in because if...
5
by: PCC | last post by:
I am using the Exception Managment Application Block on Windows Server 2003 Enterprise and .NET v1.1. If I use the block with an ASP.NET web wervice or in a web application I get the following...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
3
by: sdisalvo | last post by:
I'm looking for a way to filter records in a query (or report) based on a value in a field of an adjacent record. Can this be done easily? I cannot find any info in the help files. Thanks
6
by: dave8421 | last post by:
Hi, I'm a bit confused about the definition about "Prinicpal Block Boxes" in CSS 2.1 draft specification. ( http://www.w3.org/TR/2006/WD-CSS21-20061106 ) <pre> 9.2.1 Block-level elements and...
2
by: vectorizor | last post by:
Hi all, I am writing an image processing algorithm that goes across an image first row-wise and then column-wise. For illustration purposes, imagine that for every pixels, the output is computed...
14
by: Mark Shroyer | last post by:
I just noticed an unintuitive aspect of how nested blocks are positioned under a specific set of conditions, and although this is ostensibly correct behavior (unless Firefox, Safari, and Opera are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.