473,387 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Declarations in Modules

Hey,

Can somebody help me, I've been trying to locate a reports
'recordsource'. The reports 'On Open' event writes Me.RecordSource =
ReportFixtureSpecControlSource.

I went searching for this and found it in one of the Modules in access.
It says 'Public ReportFixtureSpecControlSource'

The problem is i need to know what the recordsource for the report is
so i can add to it.

Thanks for your help.

Christina

Jun 16 '06 #1
9 1672
If there are no parameters called for in the definition line (Public
ReportFixtureSpecControlSource) you can go to any module, type control-G to
go the immediate window and type this:

?ReportFixtureSpecControlSource

and press return.

Presumably the function returns a string that can be used as the
recordsource for a report.
Jun 16 '06 #2
Hey,

Thanks for the reply. I did what you said and nothing happened. Any
other suggestions?

Jun 16 '06 #3

ch*******@hotmail.com wrote:
Hey,

Thanks for the reply. I did what you said and nothing happened. Any
other suggestions?


Well, that's your problem. Your report has no recordsource, because
the function isn't returning a value. How about posting the code for
this function.

(Hey Randy, your psychic abilities working? Mine aren't...)

Jun 16 '06 #4

pi********@hotmail.com wrote:
ch*******@hotmail.com wrote:
Hey,

Thanks for the reply. I did what you said and nothing happened. Any
other suggestions?


Well, that's your problem. Your report has no recordsource, because
the function isn't returning a value. How about posting the code for
this function.

(Hey Randy, your psychic abilities working? Mine aren't...)


Hey,

The problem is that i can't find that function anywhere else. I didn't
make this database but i have to add linked images to the report. I
can't get the image control to work properly without adding code to the
recordsource.

Also, i know this maybe a really silly question but i can't work it out
at the moment, all this code is starting to get to me! When you add an
image control to a report you write code into the forms on current
event. As a report has no on current event, where would you place the
code?

Thanks, sorry for the vagueness the code in this database is really
messy!

Cheers

Jun 16 '06 #5
This is a classic tracing operation.

I'll start from the beginning.

On the line
Me.RecordSource = ReportFixtureSpecControlSource.

Click on the word ReportFixtureSpecControlSource and press Shift-F2 on the
keyboard.
The focus will jump to the declaration of ReportFixtureSpecControlSource.

The declaration will either be a function, a const (unlikely in this case)
or a variable.

If it is a const then your search is finished as the value is declared.

If it is a function then you just need to read and understand the function
in order to determine the value.

If it is a variable then you can then do a search on the phrase
"ReportFixtureSpecControlSource =" (note the space between the variable and
the = sign), this will then show you all the places where the variable has
been set to a value.

--

Terry Kreft
<ch*******@hotmail.com> wrote in message
news:11**********************@y41g2000cwy.googlegr oups.com...
Hey,

Can somebody help me, I've been trying to locate a reports
'recordsource'. The reports 'On Open' event writes Me.RecordSource =
ReportFixtureSpecControlSource.

I went searching for this and found it in one of the Modules in access.
It says 'Public ReportFixtureSpecControlSource'

The problem is i need to know what the recordsource for the report is
so i can add to it.

Thanks for your help.

Christina

Jun 16 '06 #6
In your code, click on the name of the function. Then press shift-F2. You
should land in the function. Copy the code and paste it here.
Jun 16 '06 #7
<ch*******@hotmail.com> wrote
Also, i know this maybe a really silly
question but i can't work it out at the
moment, all this code is starting to get
to me! When you add an image control
to a report you write code into the forms
on current event. As a report has no on
current event, where would you place the
code?
In a Report, you place in the Report's OnPrint event similar code to what
you'd place in the Form's OnCurrent.

To verify that the Report does or does not have a defined RecordSource (in
addition to whatever is being set from code), open the Report in Design
View, click the upper-leftmost little square, choose Properties, click the
Data tab in the Property dialog, and the first item is the pre-defined
Record Source of the Report (if any).
The reports 'On Open' event writes
Me.RecordSource =
ReportFixtureSpecControlSource. I went searching for this and found it in
one of the Modules in access. It says
'Public ReportFixtureSpecControlSource'
I'd wager there is more to that declaration... like an "As String" clause?
This is the variable in which a string is created that will be set into the
Report's RecordSource by the first code you cited.
The problem is i need to know what the
recordsource for the report is so i can
add to it.


Now you need to search for "ReportFixtureSpecControlSource" to see what is
set into that variable to be later moved into the RecordSource of the
Report. It might be done in a Standard Module, or might be done in a Form's
Module.

Larry Linson
Microsoft Access MVP
Larry Linson
Microsoft Access MVP


Jun 18 '06 #8
Thanks for all your help. I found the recordsource for the report in
another form. By the way when i pressed Shift-F2 nothing happened. The
report works perfectly now, i am greatly appreciative.

Christina

Jun 19 '06 #9
You did it wrong then.

--

Terry Kreft
<ch*******@hotmail.com> wrote in message
news:11*********************@h76g2000cwa.googlegro ups.com...
<SNIP> By the way when i pressed Shift-F2 nothing happened. <SNIP>

Christina

Jun 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Gabriele | last post by:
I'm hoping someone can please help me remember the C++ rule: When you're writing a header file for a class (say, some_namespace::Bar), and that class makes use of another class...
11
by: aleko | last post by:
This applies equally to function prototypes. Why do we have to tell the compiler twice? Other modern compiled languages don't have this requirement. Just curious, Aleko
134
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
2
by: MLH | last post by:
I have a form module that starts out something like this... Option Compare Database 'Use database order for string comparisons ..... Then there's a line like this in it... Public Const...
9
by: MLH | last post by:
Would the following work if placed in a form module rather than a global module? Declare Sub InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long)
20
by: Joseph Wakeling | last post by:
Hello all, Here's a brief function from the aforementioned (and controversial) GNU Scientific Library (GSL), or rather, a slightly rewritten version of it that I've made. The function takes an...
5
by: Pete Smith | last post by:
In my program I will be using the common structure repeatedly in a module. Ex Member.FirstName, Member.LastName.. How to declare it in one common place, so that I can create an instance of this...
8
by: Simon Brooke | last post by:
I was debugging a new XML generator tonight and trying to determine why it wasn't working; and realised my dom printer does not output XML namespace declarations. My method to output an Element...
17
by: Seeker | last post by:
I have a question about the design of C. Why do we have to declare functions? It's inevitable that once a function is called the compiler will need to know its definition to branch to it, so with...
26
by: samjnaa | last post by:
Hello. Please tell me whether this feature request is sane (and not done before) for python so it can be posted to the python-dev mailing list. I should say first that I am not a professional...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.