spacepro
Registered User.
- Local time
- Today, 14:46
- Joined
- Jan 13, 2003
- Messages
- 715
Hi All,
Ok I run code to assign a field to fill a vehicle ("LoadNumber"), which assigns it by Site and ProductCube per vehicle.
So now I have 4 products that will be placed on top of another 4 products(not likely to change).
Currently the records will display as follows:
Now product A + B will be standing on the floor and product E will go on top. I want to assign the record with product E to Loadnumber 1, because they will go on top of product B.
I will need some sort of trigger to define the products that go on top, but stuck a bit on the coding of it, maybe something like:
The above code is absolutely terrible but hopefully if gives you an idea of what I am trying to achieve.
Currently at the moment I am running code to assign the 8 products loadnumber to 0 then manually editing the loadnumber though a form.
If any clarification is required please post.
Any help is appreciated.
Not got my head around defining variables in DAO to achieve what I need.
Any help is much appreciated.
my original post concerning the vehicle fill is located here
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=59184
Kind regards
Andy
Ok I run code to assign a field to fill a vehicle ("LoadNumber"), which assigns it by Site and ProductCube per vehicle.
So now I have 4 products that will be placed on top of another 4 products(not likely to change).
Currently the records will display as follows:
Code:
Purchase Order Product Qty Site LoadNumber Rows
12345 A 12 London 1 4
12345 B 100 London 1 17
12345 E 88 London 2 13
I will need some sort of trigger to define the products that go on top, but stuck a bit on the coding of it, maybe something like:
Code:
product = rst.fields("Product")
select case Product
Case is = Product E
if rst.fields("Qty") <> then
.edit
.fields("LoadNumber") = product B loadnumber
end if
if rst.fields("Qty") > product B then
edit qty and addnew record with balance and change loadnumber accordingly.
End if
The above code is absolutely terrible but hopefully if gives you an idea of what I am trying to achieve.
Currently at the moment I am running code to assign the 8 products loadnumber to 0 then manually editing the loadnumber though a form.
If any clarification is required please post.
Any help is appreciated.
Not got my head around defining variables in DAO to achieve what I need.
Any help is much appreciated.
my original post concerning the vehicle fill is located here
http://www.access-programmers.co.uk/forums/showthread.php?s=&threadid=59184
Kind regards
Andy