oncurrent event not firing for unbound forms

Posted on 2014-03-19
Last Modified: 2014-03-25
hey guys,

i tested this myself and read a bit on this on google and sorry if this is superfluous but is it true in all cases that unbound forms won't fire an oncurrent event after the first opening of the form? thanks guys!
Question by:developingprogrammer
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 51

Accepted Solution

Gustav Brock earned 200 total points
ID: 39941625
Yes. There is no other "record" to make current.

LVL 24

Assisted Solution

Bitsqueezer earned 300 total points
ID: 39947282

and the question would also be: Why would you need a current event when you do not have a record to display or change between different records...? ;-)

If it is an unbound form you could create your own events whenever your code loads data into the unbound fields if you want to report that to other code without knowing the other code (didn't you learn ANYTHING about events in the meantime?...;-p)



Author Comment

ID: 39949518
hi gustav! thanks for your help! it totally makes sense that there is no other record to make it "current" = )

hi Christian! i guess i mixed up on focus with on current in the heat of the moment haha, and yes, i HAVE learnt about events in Access!! haha, just that i want to use the most efficient tools for the job so that as a developer i can spend more time doing what our clients want and be cost effective = ) a sage developer taught me that awhile ago = P (i'm still waiting for the mega cost effective opportunity to use events extensively though haha, i guess when the programme becomes more intricate!)
LVL 24

Expert Comment

ID: 39949648

in this case, why do you use an unbound form? Access supports you best if you use bound forms, as much that mostly even no code is needed. The most cost efficient way to program is to avoid programming...;-)



Author Comment

ID: 39952653
hrmm... you are right Christian. i think the reason why i use unbound forms is because from the start (way back) i didn't have the right mindset of using Access well enough and that led me down the track of doing a lot of programming. this is definitely not the way to go - in the sense i must programme very well but only where needed - or rather, like what you said - programme by not programming = )

give me a little bit more time to improve my skills so i will become a better programmer! = )

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question