U
UpRider
Matt, do you want the FileLocation to show on frmQuotes?
I assume you want a button or method to view the file?
The folder is always the same? W:\ROOMS Daily Drawings\DWF\
You want this automatically updated when the rev is created in the code?
Do you want the code to check for the .dwf fle before it creates the
hyperlink?
If not, what should happen when the user calls the hyperlink and it's not
there?
UpRider
I assume you want a button or method to view the file?
The folder is always the same? W:\ROOMS Daily Drawings\DWF\
You want this automatically updated when the rev is created in the code?
Do you want the code to check for the .dwf fle before it creates the
hyperlink?
If not, what should happen when the user calls the hyperlink and it's not
there?
UpRider
mattc66 via AccessMonster.com said:Hi UpRider,
This is working great. I would like to incorporate one more option.
I would like to add the following HyperLink. I created a field in the
tblDrawingNumbers called FileLocation. It's a HyperLink file type. Could
you
help me incorporate this into the SQL Statement.
"W:\ROOMS Daily Drawings\DWF\" & [FKQuoteID] & [Revision]&".dwf"
Thanks Matt
Matt change the function to this:
Sub subUpdateMainform()
Dim strDwgLetterRev As String
CurrentDrawingNum = vbNullString
If Not Me.NewRecord Then
strDwgLetterRev = Nz(DMax("revision", "tblDrawingNumbers", _
"FKQuoteID = " & [QuoteID]))
CurrentDrawingNum = Format(QuoteID, "0000") + strDwgLetterRev
End If
End Sub
The drawing mumber will still display on the main form but without the rev
letter. Is that OK?
UpRider
[quoted text clipped - 15 lines]Hi UpRider,Thanks again for all your help.
--
Matt Campbell
mattc (at) saunatec [dot] com
Message posted via AccessMonster.com