Microsoft
Software
Hardware
Network
Question : Problem with DCount in VBA using a variable for a table name enbedded in a form
Hello.. Having problem with DCount in VBA.
I have a form that has a hidden variable, txtMasterTable, that contains a table name. I want to count the number of records in that table using DCount. This works when I hard code the table name. However, when I use Me.txtMasterTable it is not working. I suspect this is just a quote placement issue?? Code below, thanks in advance:
MsgBox DCount("*", "& """ & Me.txtMasterTable & """ &", "[Invalid Contract] =0 And [MissingContract] = 0 and DateTimeSubmittedtoDB = #" & Me.txtDateTime & "#")
Answer : Problem with DCount in VBA using a variable for a table name enbedded in a form
Try this:
MsgBox DCount("*", Me.txtMasterTable, "[Invalid Contract] =0 And [MissingContract] = 0 and DateTimeSubmittedtoDB = #" & Me.txtDateTime & "#")
Random Solutions
"The Directory Service was unable to allocate a relative identifier." when adding machines to AD
explorer view ie8 on windows 7 and wss 3.0
dot replace with "," in VB
Configuring Exchange 2010 (Ports/DNS/Send and Receive Connectors)
is there a way to programmatically change folder permissions in windows vista?
error LNK2001: unresolved external symbol _CLSID_DccMan????
securing mdb file
move to a row in listview control - MS Access 2003
Access List Box Form Controls
Auto-attach to process '[4152] w3wp.exe' on machine '[machine name]' failed. Error code 0x8013134b.