Hi Froth.
I only can say : your database is awesome !!! And you are awesome !
There is so many things which i can use in my model - I am excited!
Could we please explain your sample model step by step in details (questions below)?
I understand a lot but not all unfortunately.
Code to search within Client Form:
I love it! This is very quickly method. I have learned a little bit about this and it is the most efficient way to lookup within table.
This query is master level:
This append query thanks to inner join is inserting all choosen documents.
I do not know exactly how it is working.
I understand inner join from QlikView:
https://community.qlik.com/thread/39177
So here inner join is cloning all Clients ID for each document.
So if you have client ID 1, and 3 documents for it, this query will add 3 rows:
ClientID, DocumentsID, RecipeDate
1 3 Now()
1 1 Now()
1 10 Now()
What is causing that ClientID and RecipeDate is cloned here? How this is working? Sorry for noob question - i have to understand it fully.
Second Question:
I would like to add into tblCLientDocuments possibility to see also document name.
How it is the best way to do it?
Add to tblCLientDocuments DocumentName and Document ID and show only DocumentName ? Add it also in qryAssignDocuments?
Please help,
I am thank you once again !
Jacek
I only can say : your database is awesome !!! And you are awesome !
There is so many things which i can use in my model - I am excited!
Could we please explain your sample model step by step in details (questions below)?
I understand a lot but not all unfortunately.
Code to search within Client Form:
Private Sub cboFinder_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ClientID] = " & Str(Nz(Me![cboFinder], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I love it! This is very quickly method. I have learned a little bit about this and it is the most efficient way to lookup within table.
This query is master level:
INSERT INTO tblClientDocuments ( ClientID, DocumentID, ReceiptDate )
SELECT [Forms]![frmClients]![txtClientID] AS ClientID, tblDocuments.DocumentID, Date() AS ReceiptDate
FROM tblDocumentStaging INNER JOIN tblDocuments ON tblDocumentStaging.DocumentID = tblDocuments.DocumentID
WHERE (((tblDocumentStaging.Assign)=True));
This append query thanks to inner join is inserting all choosen documents.
I do not know exactly how it is working.
I understand inner join from QlikView:
https://community.qlik.com/thread/39177
So here inner join is cloning all Clients ID for each document.
So if you have client ID 1, and 3 documents for it, this query will add 3 rows:
ClientID, DocumentsID, RecipeDate
1 3 Now()
1 1 Now()
1 10 Now()
What is causing that ClientID and RecipeDate is cloned here? How this is working? Sorry for noob question - i have to understand it fully.
Second Question:
I would like to add into tblCLientDocuments possibility to see also document name.
How it is the best way to do it?
Add to tblCLientDocuments DocumentName and Document ID and show only DocumentName ? Add it also in qryAssignDocuments?
Please help,
I am thank you once again !
Jacek