Microsoft
Software
Hardware
Network
Question : Using a Field from a Table as part of the file name when saving in a module
How do I put a value from a field in a table into my SaveAs function using Visual Basic?
Answer : Using a Field from a Table as part of the file name when saving in a module
dim strName as string
strName=dlookup("[Field 1]","Table 1")
objWkb.SaveAs "\\lm\FileName" & strName & Month(Date) & "-" & Day(Date) & "-" & Year(Date).
Random Solutions
Windows 7 Local Lan Browsing Painfully Slow
Setting Query Analyzer message display buffering
Problems when using static lib - MS VC++
Send Object Problem
Unable to change case in the last column of a table through VBA
Using IEAK8 to deploy IE8 to client computers
Sumproduct in VB
Sporadic Numeric field overflow
Microsoft Access 2007 Connection String
Need Help with SQL Query