473,499 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compile error invalid use of property

4 New Member
Hi,
When I write code
txtFirstName.text=rstKrish("FirstName")
compiler highlighted .text and error describes method or data member not found.
Please help
Mar 14 '07 #1
5 3374
Killer42
8,435 Recognized Expert Expert
When I write code
txtFirstName.text=rstKrish("FirstName")
compiler highlighted .text and error describes method or data member not found.
Please give us some context. for example...
  • What version of VB is this?
  • What is txtFirstName?
Assuming it's a textbox, is this code within the same form? If not, you probably need to use a syntax something like YourFormName.txtFirstName.Text to access this value.
Mar 14 '07 #2
willakawill
1,646 Top Contributor
You should continue your questions on the same thread rather than starting a new one each time your code doesn't work. I have closed the original thread and this is a link to it
Mar 14 '07 #3
PoojaJyoti
4 New Member
Please give us some context. for example...
  • What version of VB is this?
  • What is txtFirstName?
Assuming it's a textbox, is this code within the same form? If not, you probably need to use a syntax something like YourFormName.txtFirstName.Text to access this value.
I have used Visual Basic 6.0 and txtFirstName is textbox
Mar 15 '07 #4
vijaydiwakar
579 Contributor
Hi,
When I write code
txtFirstName.text=rstKrish("FirstName")
compiler highlighted .text and error describes method or data member not found.
Please help
check first the column name of recordset is spelled correct then check it doen't contain any null value to avoid this use this code
txt.text=Rs0("FirstName") &""
try it
Mar 15 '07 #5
Killer42
8,435 Recognized Expert Expert
check first the column name of recordset is spelled correct then check it doen't contain any null value to avoid this use this code
txt.text=Rs0("FirstName") &""
Or, as a first step in debugging, comment out the existing line and replace it with...
Expand|Select|Wrap|Line Numbers
  1. txtFirstName.text = "A"
This will determine for certain whether the problem lies with the database field or the textbox. My money would be on the latter.

If the textbox is the problem, then chances are it is simply out of scope. For example, your code might be on a different form, or in a code module rather than a form. If that's the case, then you need to identify the form that it lives on - see my earlier post for details.

On the other hand, are you certain it's a textbox? And not, for example, a label?
Mar 15 '07 #6

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

Similar topics

2
10095
by: Wayne | last post by:
The following which is driving me nuts has occurred in 2 of my databases. Both databases were written in Access 2003 and then converted back to Access 2000 format. I've done this so I can create an...
1
3058
by: steve smith | last post by:
Hi I have just downloaded the Borland C# Builder and the Micorsoft ..Net framework SDK v1.1 from the borland webist, and i am trying to get a simple program to run, however I keep getting errors,...
2
4614
by: Glen | last post by:
I'm working on a custom assembly and I'm trying to figure out the best approach to handling known constraints within the assembly, once compiled, to alert the developer at compile time of a...
2
5715
by: Schorschi | last post by:
Can't seemd to get ReadFile API to work! Returns invalid handle error? =========================================================================== Ok, the visual basic gurus, help! The...
5
2079
by: Rog1 | last post by:
Can anyone tell me why the following code line would give a "Compile error: wrong number of arguments or invalid property assignment" TodaysDate = Date ActiveCell.Select ActiveCell.AddComment ...
0
23441
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub)...
13
1681
by: MLH | last post by:
Invalid qualifier error displays at compile time on this A97 example from Permissions Property HELP. What's wrong with the strContainerName assignment line? (6th line) Sub...
2
1544
by: PoojaJyoti | last post by:
hi guys, I want to help for creating a GUI. I want I should get details when I click perticular name in listbox.I get entries from database to listbox but probrem arrives loading relevant details...
0
1518
by: Steve Mauldin | last post by:
I am posting this again because I never got a solution to this problem. I have an asp.net 2.0 project that when I change the build configuration to release I get the following error: Command...
0
7174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6894
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...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4919
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.