A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Where would I start looking for help?



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2004, 05:11 PM
ari
external usenet poster
 
Posts: n/a
Default Where would I start looking for help?

Hey all,

I have a module I'm creating and one of the things it does is execute an Import TextFile into a table in my database. After that I would like to check that table to see if any records exist. What is the best way to do something like that or where could I look to find out?

Thanks,
ari
  #2  
Old May 5th, 2004, 06:06 PM
Howard Brody
external usenet poster
 
Posts: n/a
Default Where would I start looking for help?

Try:

Dim i As Integer
i = DCOUNT("[FieldName]","tblImportedTable")
If i 0 Then
MsgBox "Data Exists"
... appropriate code here
End If

and check the Help files for details on DCount (and other D-) functions.

Hope this helps!

Howard Brody

----- ari wrote: -----

Hey all,

I have a module I'm creating and one of the things it does is execute an Import TextFile into a table in my database. After that I would like to check that table to see if any records exist. What is the best way to do something like that or where could I look to find out?

Thanks,
ari
  #3  
Old May 6th, 2004, 10:11 PM
ari
external usenet poster
 
Posts: n/a
Default Where would I start looking for help?

That worked, thanks.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.