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
Automatically update Org Chart when DB is updated
RAID config options for SQL Server 2008
CreateFile in EVC
Is there a way of reverting from Windows 7 back to Windows XP? I have a Windows.old folder that has saved all of the main Windows XP folders
Access 2003 Queries wrongly prompting for parameters
sony pc vaio PCV-RS all CD/DVD error code 39
Import a TXT file with >255 fields into Access 2003
Sort by short month name in the Tablix
iis5 and iis6
Help, I accidently deleted "AutoExec.bat" from Command Prompt.