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

compile error invalid use of property

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 3372
Killer42
8,435 Expert 8TB
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 1GB
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
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 512MB
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 Expert 8TB
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
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
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
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
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
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
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
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
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
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
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
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.