Selasa, 14 November 2023

Re: [MSAccessProfessionals] Return records less than 2 years from CurrentDate

How about a criteria of:

< DateAdd("yyyy", -2,Date())

Paul


------ Original Message ------
From "Jim Wagner" <josephwagner2@outlook.com>
Date 11/14/2023 10:59:46 AM
Subject [MSAccessProfessionals] Return records less than 2 years from CurrentDate

Hello all,
I have a dataset that is 17k records. A field named Effdt has dates back to 1968. I would like to create a query that returns the records from 1968 to 2 years from the current date. So, if the current date is today, I would like to only see records less than 11/14/2021. Users only need on a daily basis records that are 2 years old, but there are times that they would need data that is beyond the current date. I thought I could join the two datasets to get the records desired when needed. My issue is that the current date is moving daily. Is there a way to get the dataset needed?

Thank You

Jim Wagner

[MSAccessProfessionals] Return records less than 2 years from CurrentDate

Hello all,
I have a dataset that is 17k records. A field named Effdt has dates back to 1968. I would like to create a query that returns the records from 1968 to 2 years from the current date. So, if the current date is today, I would like to only see records less than 11/14/2021. Users only need on a daily basis records that are 2 years old, but there are times that they would need data that is beyond the current date. I thought I could join the two datasets to get the records desired when needed. My issue is that the current date is moving daily. Is there a way to get the dataset needed?

Thank You

Jim Wagner
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116463) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Sabtu, 04 November 2023

Re: [MSAccessProfessionals] Table Name Change

Hi Jim

 

I don't recommend renaming tables. Your applications could turn into Swiss cheese. There are third-party software that can help, but they all come with caveats.

 

Regards,

Bill Mosca

 

From: MSAccessProfessionals@groups.io <MSAccessProfessionals@groups.io> On Behalf Of Jim Wagner
Sent: Monday, October 30, 2023 12:31 PM
To: MSAccessProfessionals@groups.io
Subject: [MSAccessProfessionals] Table Name Change

 

Hello friends,
Years ago in a very bad lapse of judgement and at the direction of my boss, we gave names to tables that reflected the system we were using. The system is long gone and we are moving away in 2025 to a new system. In the mean time, we are moving all tables to SQL as the back end. I would like to begin renaming the tables to a more clear and standard naming convention. Some of the newer tables we developed are standardized, so they are good now. The current naming convention is as such.
R&D-EMPLOYEEHISTORY
R&D-CURRENTEMPLOYEES
R&D-FMLAELIG1
R&D-LeaveFields2New

I would like to remove the R&D- and make them camel case with no spaces. I copied a database and tested it out with the auto-correct on. It worked like a charm, but all object dependencies are erased. Is there a way to not lose the dependencies or will they eventually be rebuilt after opening it a few times?

Thank You for your assistance

Jim Wagner

Senin, 30 Oktober 2023

[MSAccessProfessionals] Table Name Change

Hello friends,
Years ago in a very bad lapse of judgement and at the direction of my boss, we gave names to tables that reflected the system we were using. The system is long gone and we are moving away in 2025 to a new system. In the mean time, we are moving all tables to SQL as the back end. I would like to begin renaming the tables to a more clear and standard naming convention. Some of the newer tables we developed are standardized, so they are good now. The current naming convention is as such.
R&D-EMPLOYEEHISTORY
R&D-CURRENTEMPLOYEES
R&D-FMLAELIG1
R&D-LeaveFields2New

I would like to remove the R&D- and make them camel case with no spaces. I copied a database and tested it out with the auto-correct on. It worked like a charm, but all object dependencies are erased. Is there a way to not lose the dependencies or will they eventually be rebuilt after opening it a few times?

Thank You for your assistance

Jim Wagner
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116461) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Selasa, 24 Oktober 2023

Re: [MSAccessProfessionals] sql list

Happy to help!



Paul
Sent via mobile device


-------- Original message --------
From: smiley2004_10 <cas23121964@gmail.com>
Date: 10/24/23 6:03 PM (GMT-05:00)
To: MSAccessProfessionals@groups.io
Subject: Re: [MSAccessProfessionals] sql list

thanks Paul, that would like a treat. It is just so annoying  that it  was so simple.

Re: [MSAccessProfessionals] sql list

thanks Paul, that would like a treat. It is just so annoying  that it  was so simple.
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#116459) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Sabtu, 21 Oktober 2023

Re: [MSAccessProfessionals] sql list

For starters there needs to be a space rather than a comma before WHERE. This should help:

https://baldyweb.com/ImmediateWindow.htm



Paul
Sent via mobile device


-------- Original message --------
From: smiley2004_10 <cas23121964@gmail.com>
Date: 10/21/23 3:02 AM (GMT-08:00)
To: MSAccessProfessionals@groups.io
Subject: [MSAccessProfessionals] sql list

Hi

What I'm trying to achieve here one menu set of buttons control the outcome of a list;

 

The user selects from the main menu (1)

Which place the number one in this case into the text box (2)

The user then clicks the hamburger icon (3) in which the category list appears sorted out by query

The list box should only show a category list as shown (5). But unfortunately the list turns up blank, or without the selection condition shows all.

 

The VBA

   SQLText = " SELECT [dbtMenuSubList1].[Menlistid],[dbtMenuSubList1].[MListName] " _

       & " FROM [dbtMenuSubList1],WHERE [dbtMenuSubList1].[Menlistid]= 1; "

Me.ListSubMenu.RowSource = SQLText

Could I please if you could tell how to achieve the above , and point out what I did wrong (office 365 64bit)