|
Programming and Assembly Language Please read this Topic's rules!! |
![]() |
| LinkBack | Thread Tools | Rate Thread |
| |||
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 |
| |||
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 |
| |||
Yep, ![]() 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 |
| ||||
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Rate This Thread | |
| |
![]() | ||||
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 |