Sabtu, 05 Mei 2018

[MS_AccessPros] Utility for hecking for used procedures

 

Is there a tool or something that I can use to run through my modules and identify subs and functions, vairables, etc that are not be using in the application?

Thank you,

Art Lorenzini
Sioux Falls, SD 


__._,_.___

Posted by: dbalorenzini@yahoo.com
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

RE: [MS_AccessPros] How do I select text boxes from the controls collection?

 

Steve

 

Not too tough.

 

Dim ctl As Control
For Each ctl In Me.Controls
     If ctl.ControlType? = acTextBox Then
         Debug.Print ctl.Name
     End If
Next ctl

 

Regards,
Bill Mosca,
Founder, MS_Access_Professionals

MS Access MVP 2006-2016
That'll do IT http://thatlldoit.com

My Nothing-to-do-with-Access blog

https://wrmosca.wordpress.com

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Friday, May 04, 2018 6:35 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] How do I select text boxes from the controls collection?

 

 

In the snippet of code below, what can I do to debug.print just the text
box controls? The form has labels and other controls as well as text
boxes. What is the "something?" and "something else?" that will make the
If statement work?

Dim ctl As Control
For Each ctl In Me.Controls
     If ctl.something? = something else? Then
         Debug.Print ctl.Name
     End If
Next ctl

Thanks.
Steve

__._,_.___

Posted by: "Bill Mosca" <wrmosca@comcast.net>
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Jumat, 04 Mei 2018

[MS_AccessPros] How to remove letters from strings with code?

 

Dear All,
How to remove letters from strings with code, only keep the numbers? For example:

H2562 to 2562

Thanks in advance.

Best Regards,
Kevin

__._,_.___

Posted by: qingqinga@yahoo.com
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

[MS_AccessPros] How do I select text boxes from the controls collection?

 

In the snippet of code below, what can I do to debug.print just the text
box controls? The form has labels and other controls as well as text
boxes. What is the "something?" and "something else?" that will make the
If statement work?

Dim ctl As Control
For Each ctl In Me.Controls
     If ctl.something? = something else? Then
         Debug.Print ctl.Name
     End If
Next ctl

Thanks.
Steve

__._,_.___

Posted by: Steve thaw5 <thaw5@suddenlink.net>
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

RE: [MS_AccessPros] Re: Creating the right number of records - loop logic

 

Hi Ray

In addition, I suggest you write the ID (primary key) of the related Editions table record into each Bookings record that you create.  That way, if the source record changes then you can find the related Bookings records to modify or delete them.

Warmly,
Graham

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Saturday, 5 May 2018 05:14
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Re: Creating the right number of records - loop logic

 

 

Maybe this will get you started.

Here is a simple sub routine that will insert records into a table named tblMagEditions.

 

 

Public Sub FillEditions(intEditions As Integer, intStart As Integer, lngCampaign As Long)

    Dim db As DAO.Database

    Dim strSQL As String

    Dim strMonth As String

    Dim x As Integer

 

    Set db = CurrentDb

 

    For x = intStart To intStart + intEditions - 1

        strMonth = Format(DateSerial(Year(Date), x, 1), "mmm")

        strSQL = "INSERT INTO tblMagEditions(CampID, MagEdtn) " _

               & "VALUES(" & lngCampaign & ", '" & strMonth & "')"

        db.Execute strSQL, dbSeeChanges

    Next

 

    Set db = Nothing

 

End Sub

 

If you can upload a small sample database to our Files>_Assistance Needed folder we can give yu more direct help.

 

Regards,

Bill Mosca, Founder - MS_Access_Professionals

My nothing-to-do-with-Access blog

 



---In MS_Access_Professionals@yahoogroups.com, <rayfrew@gmail.com> wrote :

Dear Professionals

If you could give me a nudge in the right direction, it would be most appreciated.

I'm trying to create a database that reserves space in editions of magazines.

For example:

Aspen db Ltd wants a Summer campaign of adverts in 3 magazines to run for 4 editions starting with the June issue.

My database structure is:

Customer –< many Campaigns –< many Campaign / Magazine Editions

From the other end         Magazine --< Magazine Editions --< Campaign/Magazine Editions

A veritable many to many structure.

 

What I want to do is walk through the Campaign / Magazine Editions table and create the right number of Bookings.  If the data in Campaign / Magazine Editions was:

Rec1   Aspen db Ltd  Full Page ad in Astley Mag for 4 editions starting in June

Rec2   Aspen db Ltd  Full Page ad in Beaumont Mag for 4 editions starting in June

Rec3 Aspen db Ltd  Full Page ad in Sharples Mag for 2 editions starting in September

 

I want to hold Rec1 and create 4 bookings starting in June (June, July, Aug, Sept).  Then move to Rec2 and create 4 bookings starting in June (June, July, Aug, Sept).  Finally move to Rec3 and create 2 bookings starting in September (Sept, Oct).  I expect to create recordsets to walk through the data and have loops within loops to create the right number of bookings but I'm a bit flummoxed about the logic.  Any thoughts welcomed.

 

Many thanks

Ray

 

__._,_.___

Posted by: "Graham Mandeno" <graham@mandeno.com>
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (3)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

[MS_AccessPros] Re: Creating the right number of records - loop logic

 

Maybe this will get you started.

Here is a simple sub routine that will insert records into a table named tblMagEditions.


Public Sub FillEditions(intEditions As Integer, intStart As Integer, lngCampaign As Long)
    Dim db As DAO.Database
    Dim strSQL As String
    Dim strMonth As String
    Dim x As Integer

    Set db = CurrentDb

    For x = intStart To intStart + intEditions - 1
        strMonth = Format(DateSerial(Year(Date), x, 1), "mmm")
        strSQL = "INSERT INTO tblMagEditions(CampID, MagEdtn) " _
               & "VALUES(" & lngCampaign & ", '" & strMonth & "')"
        db.Execute strSQL, dbSeeChanges
    Next

    Set db = Nothing

End Sub

If you can upload a small sample database to our Files>_Assistance Needed folder we can give yu more direct help.

Regards,
Bill Mosca, Founder - MS_Access_Professionals
http://www.thatlldoit.com
My nothing-to-do-with-Access blog
http://wrmosca.wordpress.com



---In MS_Access_Professionals@yahoogroups.com, <rayfrew@gmail.com> wrote :

Dear Professionals

If you could give me a nudge in the right direction, it would be most appreciated.

I'm trying to create a database that reserves space in editions of magazines.

For example:

Aspen db Ltd wants a Summer campaign of adverts in 3 magazines to run for 4 editions starting with the June issue.

My database structure is:

Customer –< many Campaigns –< many Campaign / Magazine Editions

From the other end         Magazine --< Magazine Editions --< Campaign/Magazine Editions

A veritable many to many structure.


What I want to do is walk through the Campaign / Magazine Editions table and create the right number of Bookings.  If the data in Campaign / Magazine Editions was:

Rec1   Aspen db Ltd  Full Page ad in Astley Mag for 4 editions starting in June

Rec2   Aspen db Ltd  Full Page ad in Beaumont Mag for 4 editions starting in June

Rec3 Aspen db Ltd  Full Page ad in Sharples Mag for 2 editions starting in September


I want to hold Rec1 and create 4 bookings starting in June (June, July, Aug, Sept).  Then move to Rec2 and create 4 bookings starting in June (June, July, Aug, Sept).  Finally move to Rec3 and create 2 bookings starting in September (Sept, Oct).  I expect to create recordsets to walk through the data and have loops within loops to create the right number of bookings but I'm a bit flummoxed about the logic.  Any thoughts welcomed.


Many thanks

Ray


__._,_.___

Posted by: wrmosca@comcast.net
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (2)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

[MS_AccessPros] Creating the right number of records - loop logic

 

Dear Professionals

If you could give me a nudge in the right direction, it would be most appreciated.

I'm trying to create a database that reserves space in editions of magazines.

For example:

Aspen db Ltd wants a Summer campaign of adverts in 3 magazines to run for 4 editions starting with the June issue.

My database structure is:

Customer –< many Campaigns –< many Campaign / Magazine Editions

From the other end         Magazine --< Magazine Editions --< Campaign/Magazine Editions

A veritable many to many structure.


What I want to do is walk through the Campaign / Magazine Editions table and create the right number of Bookings.  If the data in Campaign / Magazine Editions was:

Rec1   Aspen db Ltd  Full Page ad in Astley Mag for 4 editions starting in June

Rec2   Aspen db Ltd  Full Page ad in Beaumont Mag for 4 editions starting in June

Rec3 Aspen db Ltd  Full Page ad in Sharples Mag for 2 editions starting in September


I want to hold Rec1 and create 4 bookings starting in June (June, July, Aug, Sept).  Then move to Rec2 and create 4 bookings starting in June (June, July, Aug, Sept).  Finally move to Rec3 and create 2 bookings starting in September (Sept, Oct).  I expect to create recordsets to walk through the data and have loops within loops to create the right number of bookings but I'm a bit flummoxed about the logic.  Any thoughts welcomed.


Many thanks

Ray


__._,_.___

Posted by: rayfrew@gmail.com
Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___