473,394 Members | 1,840 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,394 software developers and data experts.

references to Public function not recognised

3
Hope someone can help or at least tell me what the hell is going on!

Quite a complex MDB which has been working fine for several months and being developed.

[U]problem no 1[/u] I have a public function in a module to return day name which has ceased to work on a single form, but stiil works on other forms.

Have tried rebuilding new Copy DB with new forms copied over from backups that did work but it wont work.

What did work was if i changed name of function (but then i would have to change all other refernces to it and doesnt solve the reason why)

I thought it might be a corrupt form but..........

Hope someone has the explanation
Oct 15 '08 #1
2 1472
GazMathias
228 Expert 128KB
Go into the module that is calling the function and click in the margin next to sub that is callling it, where it says Private Sub somesub().

If you have added an On Error Resume Next statement to the sub, comment it out.

Close the module and invoke the action that isn't working properly.

The VB window will open again and a little yellow arrow will appear over the dot marking the position in code.

Now press F8 to step through the code piece by piece. If you hover your mouse over each variable in the code, it will display its value. Follow it through and see if it gives you any insights.
Oct 15 '08 #2
Darry
3
Go into the module that is calling the function and click in the margin next to sub that is callling it, where it says Private Sub somesub().

If you have added an On Error Resume Next statement to the sub, comment it out.

Close the module and invoke the action that isn't working properly.

The VB window will open again and a little yellow arrow will appear over the dot marking the position in code.

Now press F8 to step through the code piece by piece. If you hover your mouse over each variable in the code, it will display its value. Follow it through and see if it gives you any insights.

Gaz, Thanks.

I have doen all what you say etc but the form just appears dead. On other forms when you write the reference to public routine you get an auto prompt(?) signifying the reference/variable.

The stranges thing is that when you do exactly the same on the "dead" form no prompt is shown - the form just appears dead.

i dont know if there is some corruption. I have tried copying / rebuilding / reqwriting / exporting but......

So inanswer to your post it identifies that the form VB isnt active but i dont know what to do next
Oct 16 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Vera | last post by:
Hi, I have a very annoying problem, with which I NEED HELP DESPERATELY!! It smells like a bug to me, but I'm not sure. SITUATION This description is a very much simplified version of the real...
25
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I...
6
by: Gary James | last post by:
This may not be a direct C# question, but since I'll be using using C# for development, I thought I'd pose the question here. I'll soon be involved in the design of a new software product that...
6
by: wASP | last post by:
Hello everyone, I'm new to C# and ASP.NET, so pardon my stupidity on this one. I'm having a problem with referencing methods/functions external to a class member function. My code is as...
6
by: Shailen Sukul | last post by:
Observed a weird behaviour with object references. See code listing below: using System; using System.Collections.Generic; using System.Text; namespace PointerExceptionTest { /*
14
by: Philipp Reif | last post by:
Hi all, I've got a little hole in my head concerning references. Here's what I'm trying to do: I'm calling a function, passing the reference of a business object for editing. The function clones...
86
by: jopperdepopper | last post by:
Hi, finally giving php 5 a go, and going over the new approach to classes. Can someone clarify the public, private and protected to me? I quote the php manual: "The visibility of a property or...
2
by: amygdala | last post by:
I'm trying to figure out the correct use of references. Lets say I have a class Validator and a class User. And I want to let a User instance be an referenced object in Validator. Where would the...
2
by: Ken Camann | last post by:
Hey everyone. First of all let me say that I know that the C++ standard never makes any guarantees about compiler implementation and thus about the performance of any language feature. That...
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: 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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.