English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok, I have a database in access right, it is a database that monitors sales and stock for a computer store. I have a field called In_Stock in a tblItems. The primary key for this table is called Item_ID. There is a table called tblAssets that contains a field called Items and has a relationship to the Item_ID field in tblItems. I want the In_stock field to loop through each record tblassets, look into the field items, check if the field is the same as the field in tblItems - Item_ID and if it is, add one to In_Stock.


Can anyone help me?

(Sorry, that might be pretty hard to understand, but its prob the only way you can explain it lol)

2006-09-23 13:29:15 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

contact cstarsoft 2000 at yahoo dot com

provide the version of access you are using... if its version 2003 he can't help

2006-09-23 15:05:46 · answer #1 · answered by mommakaye 5 · 0 0

upload this subroutine: inner maximum Sub UpdateTA() Dim iftype As Integer Dim stfload As String iftype = [f1] stfload = [f2] If iftype = "a million" And stfload = "low" Then TA = "3.0" If iftype = "a million" And stfload = "medium" Then TA = "4.0" If iftype = "a million" And stfload = "heavy" Then TA = "4.4" end Sub Then upload this truth interior the AfterUpdate of both your mixture packing packing bins (the AfterUpdate of the textual content fabric field merely updates once you modify the textual content fabric interior the textual content fabric field itself): UpdateTA() you should also opt to operate UpdateTA() to Form_Load and the shape (i do no longer word of offhand what that's named) that takes position together as a distinct record interior the database is selected

2016-11-23 18:08:50 · answer #2 · answered by ? 4 · 0 0

email me

2006-09-25 02:25:57 · answer #3 · answered by eeaglenest 3 · 0 0

fedest.com, questions and answers