Happy Holidays everyone!!
I had a question but I'm not sure if it's best suited for queries, coding or macros, it involves a query so i'm putting it here. However, I believe that code and/or a macro may be necessary to accomplish what I am looking for, so i'm going to break it into the three parts. If anyone feels this post is best suited for another location or if there are related posts (I was unable to find something similar in what I am looking for) please point me in the right direction. I will start with some background.
Background: I have built a database to keep track of memberships, and the memberships have different expiry dates. I have been able to automate determining when a membership expires, however I am trying to create a flashing button to the expiry list, only when a membership has expired.
Query: I have a query that produces the client name on expiry, so what I want to do is be able to check if the name field is null (no expirations), and if this is not true, then the button will flash.
I understand timer concepts for the flashing button, the issue I am having is running a query in the background (invisible on form loading) and the code required to compare the field value.
Macro: I imagine this is needed to make the query run on form loading, I have figured out how to get the query to run, but cannot figure out how to make it invisible.
Code: I figure I will need some pseudocode like so;
-if query.queryfield isnot null, then run macro, else do nothing, end if
however I am not sure what the actual code would look like
Any help would be appreciated.
Thanks,
ConfusedA
I had a question but I'm not sure if it's best suited for queries, coding or macros, it involves a query so i'm putting it here. However, I believe that code and/or a macro may be necessary to accomplish what I am looking for, so i'm going to break it into the three parts. If anyone feels this post is best suited for another location or if there are related posts (I was unable to find something similar in what I am looking for) please point me in the right direction. I will start with some background.
Background: I have built a database to keep track of memberships, and the memberships have different expiry dates. I have been able to automate determining when a membership expires, however I am trying to create a flashing button to the expiry list, only when a membership has expired.
Query: I have a query that produces the client name on expiry, so what I want to do is be able to check if the name field is null (no expirations), and if this is not true, then the button will flash.
I understand timer concepts for the flashing button, the issue I am having is running a query in the background (invisible on form loading) and the code required to compare the field value.
Macro: I imagine this is needed to make the query run on form loading, I have figured out how to get the query to run, but cannot figure out how to make it invisible.
Code: I figure I will need some pseudocode like so;
-if query.queryfield isnot null, then run macro, else do nothing, end if
however I am not sure what the actual code would look like
Any help would be appreciated.
Thanks,
ConfusedA