Re: Access project (with SQL server)

Tech-Archive recommends: Fix windows errors by optimizing your registry



What is your criteria? In other words, what's the WHERE clause in the SELECT
statement? Does the data you're trying to insert meet that criteria?

If, for example, you're only displaying records associated with this month,
and you're trying to insert a record for a different month, you'll get that
error.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"johnbertell" <johnbertell@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CF5D2446-417B-4321-BD04-DFDFB2BF116D@xxxxxxxxxxxxxxxx
> Have anyone seen this error message before:
> -----
> The data was added to the database but the data won't be displayed in the
> form because it doesn't satisfy the criteria in the underlying record
> source.
> -------
> In the error box there is a 'Show help' which gives this message:
> --------
> This error can occur if the data you are attempting to save is saving to
> an
> SQL database (Microsoft SQL Server 7.0) and the RecordSource for the
> subform
> is using an SQL Select statement with fields pulled directly from the
> source
> table, and the table is using an Identity field set as its primary key.
> To avoid this problem set the RecordSource property of the Subform to a
> Table or a View.
> -Or-
> Upgrade to a newer version of Microsoft SQL Server.
> More information about this error message online.
> -------
> - which makes absolutely no sense since I use MS SQL Server 8.0, and it
> does
> not come in a subform, it is in a plain form with a record source in the
> form
> of an SELECT-statement. I cannot use a table or a view, since I have
> dynamic
> criteria in the form which changes the recordset.
>
> By the way, the link to 'More information about this online' gives
> absolutely nothing! Here is the link:
> http://watson.microsoft.com/dw/errormessages.asp?ProductName=Office11&EventSource=OfficeErrorMessages&EventID=10021&Language=1033&productBuild=11.0.6352.0
>
> --
> /John


.



Relevant Pages

  • Re: Access project (with SQL server)
    ... change a record so it no longer matches the criteria. ... but I cannot get rid of the error message. ... >> To avoid this problem set the RecordSource property of the Subform to a ... >> More information about this error message online. ...
    (microsoft.public.access.modulesdaovba)
  • RE: time criteria in query
    ... "Harry F." ... I don't have access to the actual SQL server ... in which case you'd surround your date criteria with single-quotes ... Which date/time type are you using in Sql Server? ...
    (microsoft.public.access.queries)
  • Re: time criteria in query
    ... Or...start a query with just the date field ... "Harry F."wrote: ... criteria, it does actually return the time value properly. ... SQL Server with ODBC, Access should use DAO and therefore require the ...
    (microsoft.public.access.queries)
  • Re: Migration from mdb to MS SQL Server
    ... Hey Rick --- ... I have seen filters and criteria get it ... I always use integer fields for this now on the SQL Server. ... Rick Brandt, Microsoft Access MVP ...
    (microsoft.public.access.formscoding)
  • RE: data wont be displayed in the form
    ... criteria specified in the SQL server view, ... > form because it doesn't satisfy the criteria in the underlying record source" ... > There are no filters, no server filters, no form filters, no where clauses. ...
    (microsoft.public.access.modulesdaovba)