AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > Programming and Assembly Language

Programming and Assembly Language Please read this Topic's rules!!


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 6th September, 2002, 02:37 PM
Member
 
Join Date: January 2002
Posts: 451
Send a message via ICQ to ByteWipe

VB / Access Problem

Firstly, before I launch into this problem, I'd like to apologise for the lack of knowledge in Access. This is likely to be a simple problem, but I find Access harder to develop in, being mainly a Pure VB programmer.

Basically, I want to refer to a control, lets say for arguments sake its a label, on one form from the code generated on another form. I think the code is OK, but when I run it by clicking on a command button, Access throws a wobbler and tells me that:
'Microsoft Access cannot find the form 'frmTimeDetails' referred to in a macro expression or Visual Basic code.'

Basically, I'm using the following expression:
Forms("frmTimeDetails")("lblDate").Caption = strDate
where strDate is a string variable.

One way I can think of getting round this problem is to open the form and then make it non visible. However, I'm not too sure how to do this. In VB, all I need to write is frmTimeDetails.Show to open the form, but it's not working.

I'm sorry if this is a really simple problem, but I really need it answered, the help file really is a load of rubbish, can't seem to find what I want!

Hope someone can help
__________________
Michael Lewis
Disappointed

Main Rig: AMD XP 2000+ @ 1790Mhz (142Mhz FSB), Leadtek Winfast K7N415DA Mobo, Leadtek WinFast A250LE TD GF4 Ti4200 64MB @ 305/589, Crucial 256MB DDR PC2100 RAM, 92GB hard drive space, Chieftec Scorpio TX-10BD Case, 2 Papst 80mm Case Fans (40cfm each), Akasa AK-821 2Q Silent CPU Cooler (20cfm). Win XP Pro. 45C idle, 54C full load. 3DMark2001SE: 11020

Server: AMD K6-2 500Mhz @ 550Mhz (110Mhz FSB), Gigabyte GA-5AX Mobo, S3 Trio 4MB, 224MB P100 RAM, stock CPU cooler. Win 2000 Pro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 6th September, 2002, 04:27 PM
Member
 
Join Date: January 2002
Posts: 451
Send a message via ICQ to ByteWipe

ah, got it working, current code stands as:

DoCmd.Openform "frmTimeDetails"
'make form invisible whilst processing goes on in background
Forms![frmTimeDetails].Visible = False
Forms("frmTimeDetails")("lblDate").Caption = strDate
Forms![frmTimeDetails].Visible = True

thanks,
__________________
Michael Lewis
Disappointed

Main Rig: AMD XP 2000+ @ 1790Mhz (142Mhz FSB), Leadtek Winfast K7N415DA Mobo, Leadtek WinFast A250LE TD GF4 Ti4200 64MB @ 305/589, Crucial 256MB DDR PC2100 RAM, 92GB hard drive space, Chieftec Scorpio TX-10BD Case, 2 Papst 80mm Case Fans (40cfm each), Akasa AK-821 2Q Silent CPU Cooler (20cfm). Win XP Pro. 45C idle, 54C full load. 3DMark2001SE: 11020

Server: AMD K6-2 500Mhz @ 550Mhz (110Mhz FSB), Gigabyte GA-5AX Mobo, S3 Trio 4MB, 224MB P100 RAM, stock CPU cooler. Win 2000 Pro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 6th September, 2002, 06:48 PM
Daniel ~'s Avatar
Chief BBS Administrator
 
Join Date: September 2001
Location: Seattle Wa.
Posts: 45,606

Glad "WE" could help you! LOL Welcome to our forums hope you'll stay around and help others! Be well!
__________________
"Though all men live in ignorance before mystery,
they need not live in darkness...
Justice is foundation and Mercy ETERNAL
."
DKE

"All that we do is touched by Ocean
Yet we remain on the shore of what we know."
Richard Wilbur

[img]/forum/attachments/random-nonsense/16515-sigs-dan_drag.jpg[/img]
Subscribers! Ask Pitch about a Custom Sig Graphic

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 6th September, 2002, 07:45 PM
Member
 
Join Date: January 2002
Posts: 451
Send a message via ICQ to ByteWipe

Yep, you seem like a cool bunch

Hehe, sorry about that, I always seem to ask someone about a problem and then figure out how to do it about 5 minutes later. Always the way.

Ill be glad to help if anyone has any problems. Hoping to go to university and specialise in software engineering, so perhaps this forum is the place for me!
__________________
Michael Lewis
Disappointed

Main Rig: AMD XP 2000+ @ 1790Mhz (142Mhz FSB), Leadtek Winfast K7N415DA Mobo, Leadtek WinFast A250LE TD GF4 Ti4200 64MB @ 305/589, Crucial 256MB DDR PC2100 RAM, 92GB hard drive space, Chieftec Scorpio TX-10BD Case, 2 Papst 80mm Case Fans (40cfm each), Akasa AK-821 2Q Silent CPU Cooler (20cfm). Win XP Pro. 45C idle, 54C full load. 3DMark2001SE: 11020

Server: AMD K6-2 500Mhz @ 550Mhz (110Mhz FSB), Gigabyte GA-5AX Mobo, S3 Trio 4MB, 224MB P100 RAM, stock CPU cooler. Win 2000 Pro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 6th September, 2002, 07:55 PM
Daniel ~'s Avatar
Chief BBS Administrator
 
Join Date: September 2001
Location: Seattle Wa.
Posts: 45,606

If you don't find what you need let me know. I like to think of us as a Saran wrap forum, clinging to our users needs where ever possible! ":O}
__________________
"Though all men live in ignorance before mystery,
they need not live in darkness...
Justice is foundation and Mercy ETERNAL
."
DKE

"All that we do is touched by Ocean
Yet we remain on the shore of what we know."
Richard Wilbur

[img]/forum/attachments/random-nonsense/16515-sigs-dan_drag.jpg[/img]
Subscribers! Ask Pitch about a Custom Sig Graphic

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does one get access to: amdpreferred Random Nonsense! 4 16th February, 2005 08:08 AM
HDD Access? SadisticWarrior General Hardware Discussion 5 9th April, 2003 10:06 PM
Office 97 - Access Quint OS, Software, Firmware, and BIOS 2 16th March, 2003 08:55 PM
Anyone here know Access very well? Southern Man Random Nonsense! 3 9th February, 2003 01:54 PM
Is Access 2k compatible with access XP? Aphex OS, Software, Firmware, and BIOS 5 26th November, 2001 06:04 AM


All times are GMT +1. The time now is 04:09 PM.


Copyright ©2001 - 2023, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0