Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox won't display custom fields 1

Status
Not open for further replies.

bvbowes

Programmer
Oct 12, 2006
21
US
After inserting records from Oracle into a table in Access I want a msgbox to display the count of records inserted. I thought this would work and it doesn't, what am I doing wrong?

daily_count = "SELECT Count(tblDaily.VENDOR_NAME) AS Count From tblDaily"

MsgBox "Daily table import has completed! & daily_count & ", vbOKOnly, "Import Status"
 
try
Code:
daily_count = dCount("*","tblDaily")

MsgBox "Daily table import has completed! " & daily_count ,vbOKOnly, "Import Status"
 
Public Sub dailyCount()
Dim daily_count As Integer
daily_count = DCount("Vendor_Name", "tblDaily")
MsgBox "Daily table import has completed! " & daily_count, vbOKOnly, "Import Status"
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top