Finally got there (sort of) with this approach:
If rstCascade.EOF = False And rstCascade.BOF = False Then
Do
' Walk down the Cascadelog for the new location
varFind = DLookup(strNew_Loc, strCascadeTableName, _
"[" & strOld_Loc & "]='" &...
Thanks Remou I appreciate your prompt reply,
a little more information is that Im trying to update the Inventory table Inv.Locationcode to the "New" (last)updated value (logtbl.Newvalue) in the log table, so I thought I would have envisaged a nested loop, i.e. go through each record in the...
Im new to loops and hope someone can help with what should be a simple solution.
I have a table with Location information imported from another database, the user can change the locationcode to a new value, this "new "value is stored (as well as the original value) in a log table as...
Thanks Remou
Finally got my head round it, and it works fine. I have now got a Data validation table that can be used for reporting and exporting into s spreadsheet.
Dim rs As DAO.Recordset
Dim strSql As String
Set rs = CurrentDb.OpenRecordset("Select IntegStatement FROM...
Thanks for your help, Im very new so stumbling along really, the idea is to be able to add records to the Statement so it is dynamic the sql reference table is:
Key(autonumber) StateName(text) IntegStatement(memo)
and it is populating a logfile with generic fields, an example of the SQL...
Im a newbie so bear with me, I have several versions of a database with 30 odd tables in each. Each database has records that must be completed and so I create standard queries that are then copied to each Db instance.
The problem is that these Query reports need constantly updating amending...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.