funwithaccess
Registered User.
- Local time
- Today, 00:49
- Joined
- Sep 5, 2013
- Messages
- 80
Hi,
I hope that this is the correct place to post this. My VBA knowledge is expanding, however, this is way over my head in terms of technical know-how.
I have 3 queries that provide the same printer information. Each one is queried by a different field: IP address, asset tag, and serial number. This may not mean anything in the long run, though I figured it is worth mentioning.
The users need to be able to quickly query a printer utilizing one of those criteria and then copy and paste it into our ticketing system. Is there a way to automatically export the record from the query to a text file? I have extensively searched online and have tried to come up with something but I have found that I don't know where to start. This is the code for the query:
Thank you in advance!! (Mod, please feel free to move this post if it is in the incorrect location.)
Nate
I hope that this is the correct place to post this. My VBA knowledge is expanding, however, this is way over my head in terms of technical know-how.
I have 3 queries that provide the same printer information. Each one is queried by a different field: IP address, asset tag, and serial number. This may not mean anything in the long run, though I figured it is worth mentioning.
The users need to be able to quickly query a printer utilizing one of those criteria and then copy and paste it into our ticketing system. Is there a way to automatically export the record from the query to a text file? I have extensively searched online and have tried to come up with something but I have found that I don't know where to start. This is the code for the query:
Code:
Dim intCount As Integer
intCount = 0
If DCount("Location", "Phone numbers Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "", acViewNormal, acReadOnly
End If
If DCount("Heading", "Service Desk Manual Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "Service Desk Manual Query", acViewNormal, acReadOnly
End If
If DCount("Alias", "SD Documentation Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "SD Documentation Query", acViewNormal, acReadOnly
End If
If DCount("AssetNumber", "Xerox Assets Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "Xerox Assets Query", acViewNormal, acReadOnly
End If
If DCount("[IP Address]", "Xerox IP Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "Xerox IP Query", acViewNormal, acReadOnly
End If
If DCount("SerialNumber", "Xerox Serial Query") > 0 Then
intCount = intCount + 1
DoCmd.OpenQuery "Xerox Serial Query", acViewNormal, acReadOnly
End If
If intCount = 0 Then MsgBox "No results found in ServiceBase." & vbCrLf & "Please provide a specific word, phrase, or alias.", vbExclamation + vbOKOnly, "ServiceBase Search Results"
Thank you in advance!! (Mod, please feel free to move this post if it is in the incorrect location.)
Nate