15ce1 How to find if a field exists?
Sign Up |  Live StatsLive Stats    Articles 37,321| Comments 177,194| Members 19,408, Newest ssarabjeet61| Online 493
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

How to find if a field exists?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Modern Day Sex-slave Trade Still Exists in India Soul_jyot India 0 25-Jul-2011 21:06 PM
Caste Discrimination Exists in UK, says Govt Report Soul_jyot United Kingdom 1 17-Dec-2010 21:10 PM
Yeti exists: TV host kds1980 Leisure 1 23-May-2008 05:45 AM
Access says a relationship exists when there are non - help! Jen N Information Technology 1 28-Jul-2006 08:28 AM
Send file attachment if it exists TOMAC Information Technology 0 28-Jul-2006 08:01 AM


Tags
exists, field, find
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 18-Nov-2005, 14:00 PM
Aaron G's Avatar Aaron G
Guest
 
Posts: n/a
   
   
How to find if a field exists?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Using Access 2003,

I'm trying to create a command button on a form (frmBase) that will open a
popup form (frmPopup) with related data (linked relationship of "ID" and
"ForeignID"). I can get this to work fine, HOWEVER, if there is no data (ie.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/7685-how-to-find-if-field-exists.html
the ForeignID does not exist) then I want to open the form in DataEntry =
True mode. I know how to open a form in DataEntry mode, but I'm having
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
difficulty with the IF/Then.

So, what conditional code do I need to see if a record exists?

TIA

Aaron G
Philadelphia, PA


Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 18-Nov-2005, 14:00 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: How to find if a field exists?

Can you post what you have now?

On the OnClick event I would put something like that
If Isnull(DLookUp("FieldName","TableName","Enter here the criteria") Then
' New record open in add mode
Docmd.OpenForm "FormName",,,,acFormAdd
Else
' Existing recod, open in edit mode with criteria
Docmd.OpenForm "FormName",,,WhereCondition,acFormEdit
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
End if
--
I hope that helped
Good Luck


"Aaron G" wrote:

> Using Access 2003,
>
> I'm trying to create a command button on a form (frmBase) that will open a
> popup form (frmPopup) with related data (linked relationship of "ID" and
> "ForeignID"). I can get this to work fine, HOWEVER, if there is no data (ie.
> the ForeignID does not exist) then I want to open the form in DataEntry =
> True mode. I know how to open a form in DataEntry mode, but I'm having
> difficulty with the IF/Then.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
>
> So, what conditional code do I need to see if a record exists?
>
> TIA
>
> Aaron G
> Philadelphia, PA

Reply With Quote
  #3 (permalink)  
Old 18-Nov-2005, 14:00 PM
Aaron G's Avatar Aaron G
Guest
 
Posts: n/a
   
   
RE: How to find if a field exists?

Ofer,

That worked perfectly. I'm to embarrased to show you the mess I was trying
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
to make. My blood sugar must be getting low.

As always, thanks for your help.

Aaron G
Philadelphia, PA

"Ofer" wrote:

> Can you post what you have now?
>
> On the OnClick event I would put something like that
> If Isnull(DLookUp("FieldName","TableName","Enter here the criteria") Then
> ' New record open in add mode
> Docmd.OpenForm "FormName",,,,acFormAdd
> Else
> ' Existing recod, open in edit mode with criteria
> Docmd.OpenForm "FormName",,,WhereCondition,acFormEdit
> End if
> --
> I hope that helped
> Good Luck
>
>
> "Aaron G" wrote:
>
> > Using Access 2003,
> >
> > I'm trying to create a command button on a form (frmBase) that will open a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
> > popup form (frmPopup) with related data (linked relationship of "ID" and
> > "ForeignID"). I can get this to work fine, HOWEVER, if there is no data (ie.
> > the ForeignID does not exist) then I want to open the form in DataEntry =
> > True mode. I know how to open a form in DataEntry mode, but I'm having
> > difficulty with the IF/Then.
> >
> > So, what conditional code do I need to see if a record exists?
> >
> > TIA
> >
> > Aaron G
> > Philadelphia, PA

Reply With Quote
  #4 (permalink)  
Old 18-Nov-2005, 14:00 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: How to find if a field exists?

  Donate Today!  
Glad I could Help
Good Luck


"Aaron G" wrote:

> Ofer,
>
> That worked perfectly. I'm to embarrased to show you the mess I was trying
> to make. My blood sugar must be getting low.
>
> As always, thanks for your help.
>
> Aaron G
> Philadelphia, PA
>
> "Ofer" wrote:
>
> > Can you post what you have now?
> >
> > On the OnClick event I would put something like that
> > If Isnull(DLookUp("FieldName","TableName","Enter here the criteria") Then
> > ' New record open in add mode
> > Docmd.OpenForm "FormName",,,,acFormAdd
> > Else
> > ' Existing recod, open in edit mode with criteria
> > Docmd.OpenForm "FormName",,,WhereCondition,acFormEdit
> > End if
> > --
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
> > I hope that helped
> > Good Luck
> >
> >
> > "Aaron G" wrote:
> >
> > > Using Access 2003,
> > >
> > > I'm trying to create a command button on a form (frmBase) that will open a
> > > popup form (frmPopup) with related data (linked relationship of "ID" and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7685
> > > "ForeignID"). I can get this to work fine, HOWEVER, if there is no data (ie.
> > > the ForeignID does not exist) then I want to open the form in DataEntry =
> > > True mode. I know how to open a form in DataEntry mode, but I'm having
> > > difficulty with the IF/Then.
> > >
> > > So, what conditional code do I need to see if a record exists?
> > >
> > > TIA
> > >
> > > Aaron G
> > > Philadelphia, PA

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 1
arshdeep88

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
SSGS with English...
By akiva
Today 12:46 PM
8 Replies, 80 Views
Losing My Religion: Why...
Today 11:52 AM
11 Replies, 227 Views
Keeping Amrit Vela
By Alisa
Today 02:39 AM
5 Replies, 785 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:44 AM
310 Replies, 7,522 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:30 AM
174 Replies, 4,440 Views
Dalai Lama’s Lessons for...
Today 00:11 AM
0 Replies, 38 Views
30 Day Amrit Vela -...
Yesterday 23:49 PM
45 Replies, 652 Views
How does Sikhi help you...
Yesterday 22:59 PM
19 Replies, 825 Views
What Do You Think of...
Yesterday 22:56 PM
39 Replies, 708 Views
How Religions Change...
Yesterday 19:33 PM
0 Replies, 74 Views
Do you believe in...
Yesterday 12:00 PM
184 Replies, 3,904 Views
Thought of the Moment!
Yesterday 10:07 AM
109 Replies, 5,155 Views
Amrit
Yesterday 09:17 AM
5 Replies, 364 Views
What I believe Hukam to...
Yesterday 03:15 AM
13 Replies, 185 Views
Should SPN Keep the...
Yesterday 02:02 AM
19 Replies, 691 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 12:50 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.38681 seconds with 32 queries
0